From 691f4aab0629aac8e0632359c90a534e96eae1c9 Mon Sep 17 00:00:00 2001 From: sillysagiri Date: Thu, 17 Oct 2024 03:48:21 +0700 Subject: [PATCH] add docs from wayback machine --- ...yLine Utils v1.8.2 API Specification).html | 548 ++++++++++++++++++ library/tinygzip/README.TXT | 92 +++ 2 files changed, 640 insertions(+) create mode 100644 library/tinygzip/GZIPInputStream (TinyLine Utils v1.8.2 API Specification).html create mode 100644 library/tinygzip/README.TXT diff --git a/library/tinygzip/GZIPInputStream (TinyLine Utils v1.8.2 API Specification).html b/library/tinygzip/GZIPInputStream (TinyLine Utils v1.8.2 API Specification).html new file mode 100644 index 0000000..86e290b --- /dev/null +++ b/library/tinygzip/GZIPInputStream (TinyLine Utils v1.8.2 API Specification).html @@ -0,0 +1,548 @@ + + + + + + + + + + + + + + + +GZIPInputStream (TinyLine Utils v1.8.2 API Specification) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+TinyLine Utils
v1.8.2
+
+ + + +
+ +

+ +com.tinyline.util +
+Class GZIPInputStream

+
+java.lang.Object
+  extended byjava.io.InputStream
+      extended bycom.tinyline.util.GZIPInputStream
+
+
+
+
public class GZIPInputStream
extends java.io.InputStream
+ +

+This class implements a stream filter for reading compressed data in the GZIP format. + The "GZIP" format is described in RFC 1952 +

+ version 1.8.2 +

+ Copyright (c) 2002-2005 TinyLine. All Rights Reserved. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Constructor Summary
GZIPInputStream(java.io.InputStream in) + +
+          Creates a new input stream with a default buffer size.
GZIPInputStream(java.io.InputStream inputstream, + int size) + +
+          Creates a new input stream with the specified buffer size.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intavailable() + +
+          Returns the number of bytes that can be read from this input + stream without blocking.
+ voidclose() + +
+          Closes the input stream.
+ voidmark(int readlimit) + +
+          Marks the current position in this input stream.
+ booleanmarkSupported() + +
+          Tests if this input stream supports the mark
+ intread() + +
+          Reads a byte of uncompressed data.
+ intread(byte[] b) + +
+          Reads uncompressed data into an array of bytes.
+ intread(byte[] buffer, + int offset, + int length) + +
+          Reads uncompressed data into an array of bytes.
+ voidreset() + +
+          Repositions this stream to the position at the time the + mark method was last called on this input stream.
+ longskip(long n) + +
+          Skips specified number of bytes of uncompressed data.
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+GZIPInputStream

+
+public GZIPInputStream(java.io.InputStream inputstream,
+                       int size)
+                throws java.io.IOException
+
+
Creates a new input stream with the specified buffer size. +

+

Parameters:
size - the input buffer size +
Throws: +
java.io.IOException - if an I/O error has occurred
+
+ +

+GZIPInputStream

+
+public GZIPInputStream(java.io.InputStream in)
+                throws java.io.IOException
+
+
Creates a new input stream with a default buffer size. +

+

Parameters:
in - the input stream +
Throws: +
java.io.IOException - if an I/O error has occurred
+ + + + + + + + +
+Method Detail
+ +

+read

+
+public int read(byte[] buffer,
+                int offset,
+                int length)
+         throws java.io.IOException
+
+
Reads uncompressed data into an array of bytes. Blocks until enough + input is available for decompression. +

+

+
Parameters:
buffer - the buffer into which the data is read
offset - the start offset of the data
length - the maximum number of bytes read +
Returns:
the actual number of bytes read, or -1 if the end of the + compressed input stream is reached +
Throws: +
java.io.IOException - if an I/O error has occurred or the compressed + input data is corrupt
+
+
+
+ +

+read

+
+public int read()
+         throws java.io.IOException
+
+
Reads a byte of uncompressed data. This method will block until + enough input is available for decompression. +

+

+ +
Returns:
the byte read, or -1 if end of compressed input is reached +
Throws: +
java.io.IOException - if an I/O error has occurred
+
+
+
+ +

+read

+
+public int read(byte[] b)
+         throws java.io.IOException
+
+
Reads uncompressed data into an array of bytes. This method will + block until some input can be decompressed. +

+

+
Parameters:
b - the buffer into which the data is read +
Returns:
the total number of bytes read into the buffer, or + -1 if there is no more data because the end of + the stream has been reached. +
Throws: +
java.io.IOException - if an I/O error occurs.
+
+
+
+ +

+close

+
+public void close()
+           throws java.io.IOException
+
+
Closes the input stream. +

+

+ +
Throws: +
java.io.IOException - if an I/O error has occurred
+
+
+
+ +

+skip

+
+public long skip(long n)
+          throws java.io.IOException
+
+
Skips specified number of bytes of uncompressed data. +

+

+
Parameters:
n - the number of bytes to skip. +
Returns:
the actual number of bytes skipped. +
Throws: +
java.io.IOException - if an I/O error has occurred
+
+
+
+ +

+available

+
+public int available()
+              throws java.io.IOException
+
+
Returns the number of bytes that can be read from this input + stream without blocking. +

+

+ +
Returns:
the number of bytes that can be read from the input stream + without blocking. +
Throws: +
java.io.IOException - if an I/O error occurs.
+
+
+
+ +

+mark

+
+public void mark(int readlimit)
+
+
Marks the current position in this input stream. A subsequent + call to the reset method repositions this stream at + the last marked position so that subsequent reads re-read the same bytes. +

+ The readlimit argument tells this input stream to + allow that many bytes to be read before the mark position gets + invalidated. +

+

+

+
Parameters:
readlimit - the maximum limit of bytes that can be read before + the mark position becomes invalid.
+
+
+
+ +

+reset

+
+public void reset()
+           throws java.io.IOException
+
+
Repositions this stream to the position at the time the + mark method was last called on this input stream. +

+ Stream marks are intended to be used in + situations where you need to read ahead a little to see what's in + the stream. Often this is most easily done by invoking some + general parser. If the stream is of the type handled by the + parse, it just chugs along happily. If the stream is not of + that type, the parser should toss an exception when it fails. + If this happens within readlimit bytes, it allows the outer + code to reset the stream and try another parser. +

+

+ +
Throws: +
java.io.IOException - if the stream has not been marked or if the + mark has been invalidated.
+
+
+
+ +

+markSupported

+
+public boolean markSupported()
+
+
Tests if this input stream supports the mark +

+

+ +
Returns:
true if this stream type supports the + mark and reset method; + false otherwise.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+TinyLine Utils
v1.8.2
+
+ + + +
+Copyright (C) 2002-2005 TinyLine. All Rights Reserved. + + + + \ No newline at end of file diff --git a/library/tinygzip/README.TXT b/library/tinygzip/README.TXT new file mode 100644 index 0000000..ab2e247 --- /dev/null +++ b/library/tinygzip/README.TXT @@ -0,0 +1,92 @@ +============================================================================ + TINYLINE GZIPInputStream 1.8.2 +============================================================================ + +----------------------------------------------------------------------- +OVERVIEW + +TinyLine GZIPInputStream is a pure J2ME implementation of the +java.util.zip.GZIPInputStream class that uses the same Java API as in +Java 1.1 or Java 1.4.1. +The size of the com.tinyline.util.GZIPInputStream in the +JAR format is about 6K. It is developed as a part of TinyLine SVG +Toolkit. + +----------------------------------------------------------------------- +CHANGES + +The following changes have been made since the version 1.8 of +the TINYLINE GZIPInputStream + +1. The skip() bug was fixed. The skip() was restricted to 2048 bytes. + Now it is conformed to the java.util.zip.GZIPInputStream + implementation. + +The following changes have been made since the version 1.4 of +the TINYLINE GZIPInputStream + +1. In order to be compartible with the NTT MIDP DoJa platform + the java.lang.IllegalStateException was replaced with the + java.io.IOException. + +2. The big files bug is fixed. + + +----------------------------------------------------------------------- +CONTENTS + +bin This directory containes the demo application files: + tinylinegzip.jad and tinylinegzip.jar + +docs This directory containes the JavaDoc files generated for + the com.tinyline.util.GZIPInputStream class + +lib This directory containes com.tinyline.util.GZIPInputStream + class (tinylinegzip.zip). + DO NOT UNZIP THIS FILE! It must remain zipped for the + compiler and interpreter to access the class files + within it properly. + +src This directory containes sources of the GZIPInputStream demo + sample. + + +README.TXT This file you are currently reading + +TINYLINE_LICENSE.TXT + License agreement for the TinyLine GZIPInputStream + + +----------------------------------------------------------------------- +HOW TO INSTALL? + +[1] You need to have J2ME™ Wireless Toolkit 1.04 (or later) installed +[2] Unzip the tinylinegzip.zip under the WTK104\apps directory. + So the result directory structure should be : + WTK104\apps\tinylinegzip\ + bin\ + classes\ + docs\ + lib\ + src\ + tmpclasses\ + tmplib\ + README.TXT + TINYLINE_LICENSE.TXT + +----------------------------------------------------------------------- +HOW TO RUN THE SAMPLES? + +You can run the sample or +[1] Install and run the JAD and JAR files from the bin + directory on your device or emulator +OR +[2] Open the tinylinegzip project from KToolbar (J2ME™ Wireless Toolkit) + and run the project. + + +----------------------------------------------------------------------- +MORE INFO + +For more information on the TinyLine, +please see . \ No newline at end of file