wicket.util.io |
wicket.util.io package
Input/Output utilities. ByteArrayOutputStream, DeferredFileOutputStream, FileCleaner,
ThresholdingOutputStream and IOUtils are copied from the Apache Jakarta Commons IO project
(version 1.0). They are used by upload functions.
|
Java Source File Name | Type | Comment |
ByteArrayOutputStream.java | Class | This class implements an output stream in which the data is written into a byte array.
The buffer automatically grows as data is written to it.
The data can be retrieved using toByteArray() and
toString() .
Closing a ByteArrayOutputStream has no effect. |
ByteCountingOutputStream.java | Class | Output stream that counts bytes written to it (but discards them). |
DeferredFileOutputStream.java | Class |
An output stream which will retain data in memory until a specified threshold is
reached, and only then commit it to disk. |
FullyBufferedReader.java | Class | This is not a reader like e.g. |
IOUtils.java | Class | General IO Stream manipulation.
This class provides static utility methods for input/output operations.
- closeQuietly - these methods close a stream ignoring nulls and
exceptions
- toXxx - these methods read data from a stream
- write - these methods write data to a stream
- copy - these methods copy all the data from one stream to another
- contentEquals - these methods compare the content of two streams
The byte-to-char methods and char-to-byte methods involve a conversion step.
Two methods are provided in each case, one that uses the platform default
encoding and the other which allows you to specify an encoding. |
Streams.java | Class | Utilities methods for working with input and output streams. |
StringBufferWriter.java | Class | |
ThresholdingOutputStream.java | Class | An output stream which triggers an event when a specified number of bytes of data have
been written to it. |
XmlReader.java | Class | This is a simple XmlReader. |
XmlReaderTest.java | Class | |