| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static IO. | |
| private static IO. | |
| private static IO. | |
| public static int | |
| public static final String | |
| public static final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | copy(InputStream in, OutputStream out, long byteCount)
Copy Stream in to Stream for byteCount bytes or until EOF or exception. |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static boolean | |
| public static InputStream | |
| public static OutputStream | |
| public static Writer | |
| public static byte[] | |
| public static String | |
| public static String | |
| public static String |
| __closedStream | back to summary |
|---|---|
| private static IO. | |
| __nullStream | back to summary |
|---|---|
| private static IO. | |
| __nullWriter | back to summary |
|---|---|
| private static IO. | |
| bufferSize | back to summary |
|---|---|
| public static int bufferSize | |
| CRLF | back to summary |
|---|---|
| public static final String CRLF | |
| CRLF_BYTES | back to summary |
|---|---|
| public static final byte[] CRLF_BYTES | |
| IO | back to summary |
|---|---|
| public IO() | |
| close | back to summary |
|---|---|
| public static void close(InputStream is) closes an input stream, and logs exceptions
| |
| close | back to summary |
|---|---|
| public static void close(OutputStream os) closes an output stream, and logs exceptions
| |
| copy | back to summary |
|---|---|
| public static void copy(InputStream in, OutputStream out) throws IOException Copy Stream in to Stream out until EOF or exception. | |
| copy | back to summary |
|---|---|
| public static void copy(Reader in, Writer out) throws IOException Copy Reader to Writer out until EOF or exception. | |
| copy | back to summary |
|---|---|
| public static void copy(InputStream in, OutputStream out, long byteCount) throws IOException Copy Stream in to Stream for byteCount bytes or until EOF or exception. | |
| copy | back to summary |
|---|---|
| public static void copy(Reader in, Writer out, long byteCount) throws IOException Copy Reader to Writer for byteCount bytes or until EOF or exception. | |
| copy | back to summary |
|---|---|
| public static void copy(File from, File to) throws IOException Copy files or directories | |
| copyDir | back to summary |
|---|---|
| public static void copyDir(File from, File to) throws IOException | |
| copyFile | back to summary |
|---|---|
| public static void copyFile(File from, File to) throws IOException | |
| copyThread | back to summary |
|---|---|
| public static void copyThread(InputStream in, OutputStream out) Copy Stream in to Stream out until EOF or exception. in own thread | |
| copyThread | back to summary |
|---|---|
| public static void copyThread(Reader in, Writer out) Copy Stream in to Stream out until EOF or exception in own thread | |
| delete | back to summary |
|---|---|
| public static boolean delete(File file) Delete File. This delete will recursively delete directories - BE CAREFULL
| |
| getClosedStream | back to summary |
|---|---|
public static InputStream getClosedStream()
| |
| getNullStream | back to summary |
|---|---|
public static OutputStream getNullStream()
| |
| getNullWriter | back to summary |
|---|---|
public static Writer getNullWriter()
| |
| readBytes | back to summary |
|---|---|
| public static byte[] readBytes(InputStream in) throws IOException | |
| toString | back to summary |
|---|---|
| public static String toString(InputStream in) throws IOException Read input stream to string. | |
| toString | back to summary |
|---|---|
| public static String toString(InputStream in, String encoding) throws IOException Read input stream to string. | |
| toString | back to summary |
|---|---|
| public static String toString(Reader in) throws IOException Read input stream to string. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | read()
Implements abstract java. |
| ClosedIS | back to summary |
|---|---|
| private ClosedIS() | |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv InputStream | |
| pack-priv OutputStream | |
| pack-priv Reader | |
| pack-priv Writer |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| in | back to summary |
|---|---|
| pack-priv InputStream in | |
| out | back to summary |
|---|---|
| pack-priv OutputStream out | |
| read | back to summary |
|---|---|
| pack-priv Reader read | |
| write | back to summary |
|---|---|
| pack-priv Writer write | |
| Job | back to summary |
|---|---|
| pack-priv Job(InputStream in, OutputStream out) | |
| Job | back to summary |
|---|---|
| pack-priv Job(Reader read, Writer write) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public void | flush()
Overrides java. Implements java. |
| public void | write(byte[]
the data. b)Overrides java. b.length bytes from the specified byte array
to this output stream.
|
| public void | write(byte[]
the data. b, int the start offset in the data. i, int the number of bytes to write. l)Overrides java. len bytes from the specified byte array
starting at offset off to this output stream.
|
| public void | write(int
the b)byte.Implements abstract java. |
| NullOS | back to summary |
|---|---|
| private NullOS() | |
| close | back to summary |
|---|---|
| public void close() Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of | |
| flush | back to summary |
|---|---|
| public void flush() Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive. | |
| write | back to summary |
|---|---|
| public void write(byte[] b) Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int i, int l) Overrides java. Doc from java. Writes
If
If
| |
| write | back to summary |
|---|---|
| public void write(int b) Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements java. |
| public void | flush()
Implements abstract java. Implements java. |
| public void | write(char[]
Array of characters to be written b)Overrides java. |
| public void | write(char[]
Array of characters b, int Offset from which to start writing characters o, int Number of characters to write l)Implements abstract java. |
| public void | write(int
int specifying a character to be written b)Overrides java. |
| public void | |
| public void | write(String
A String s, int Offset from which to start writing characters o, int Number of characters to write l)Overrides java. |
| NullWrite | back to summary |
|---|---|
| private NullWrite() | |
| close | back to summary |
|---|---|
| public void close() Implements abstract java. Implements java. Doc from java. Closes the stream, flushing it first. Once the stream has been closed, further write() or flush() invocations will cause an IOException to be thrown. Closing a previously closed stream has no effect. | |
| flush | back to summary |
|---|---|
| public void flush() Implements abstract java. Implements java. Doc from java. Flushes the stream. If the stream has saved any characters from the various write() methods in a buffer, write them immediately to their intended destination. Then, if that destination is another character or byte stream, flush it. Thus one flush() invocation will flush all the buffers in a chain of Writers and OutputStreams. If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive. | |
| write | back to summary |
|---|---|
| public void write(char[] b) Overrides java. Doc from java. Writes an array of characters.
| |
| write | back to summary |
|---|---|
| public void write(char[] b, int o, int l) Implements abstract java. Doc from java. Writes a portion of an array of characters.
| |
| write | back to summary |
|---|---|
| public void write(int b) Overrides java. Doc from java. Writes a single character. The character to be written is contained in the 16 low-order bits of the given integer value; the 16 high-order bits are ignored. Subclasses that intend to support efficient single-character output should override this method.
| |
| write | back to summary |
|---|---|
| public void write(String s) Overrides java. Doc from java. Writes a string.
| |
| write | back to summary |
|---|---|
| public void write(String s, int o, int l) Overrides java. Doc from java. Writes a portion of a string.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final QueuedThreadPool |
| Access | Constructor and Description |
|---|---|
| private |
| __pool | back to summary |
|---|---|
| pack-priv static final QueuedThreadPool __pool | |
| Singleton | back to summary |
|---|---|
| private Singleton() | |