org.apache.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). |
ClassStreamHandler.java | Class | TODO DOC ME!
NOTE: this class uses Sun-specific features: we use
Unsafe because we
need to set the final fields, and we use
ReflectionFactory to be able
to find constructors appropriate for serialization. |
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. |
HandleArrayListStack.java | Class | TODO document me. |
IObjectStreamFactory.java | Interface | Interface for serializing and deserializing so that we can very the
implementation of the
ObjectOutputStream and
ObjectInputStream implementations. |
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. |
PageA.java | Class | |
PageB.java | Class | |
SerializableChecker.java | Class | Utility class that analyzes objects for non-serializable nodes. |
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. |
WicketObjectInputStream.java | Class | |
WicketObjectOutputStream.java | Class | |
WicketObjectStreamFactory.java | Class | Object stream factory for Wicket's custom serialization. |
WicketOutputStreamTest.java | Class | |
WicketSerializeableException.java | Class | |
XmlReader.java | Class | This is a simple XmlReader. |
XmlReaderTest.java | Class | |