|
|||||||||
| Home >> All >> edu >> emory >> mathcs >> util >> io >> [ test overview ] | PREV PACKAGE NEXT PACKAGE | ||||||||
Package edu.emory.mathcs.util.io.test
Utility classes related to stream-based I/O.
See:
Description
| Class Summary | |
| BufferedDataStreamTest | Title: Test class |
Package edu.emory.mathcs.util.io.test Description
Utility classes related to stream-based I/O. Highlights:
Base64EncoderandBase64Decoderallow to encode and decode bytes to and from the base64 format. The classes can work both as filtering streams and offline (converting strings to byte arrays and vice versa).BufferedPipeis an in-memory pipe that links an output stream with an input stream via a dynamically sized memory buffer. Such pipes are useful for decoupling data producing threads from data consuming threads in a way that allows to control and minimize memory footprint.- Various ways of redirecting and splitting streams are handled by
ForkOutputStream,RedirectingInputStream,RedirectingReader, andTeeInputStreamclasses. -
NullInputStreamandNullOutputStreamprovide stream "terminators", similar to /dev/null: the former is always at EOF, and the latter discards all the data written. They are useful to specify "no data" or to discard an output when working with stream-oriented APIs. -
CompressedOutputStreamandCompressedInputStreamprovide data compression capabilities while maintaining strong flush semantics, i.e. flushing causes all buffered data to be written out. Because of this feature, these classes can be used for request-response-based applications, e.g. as RMI or RPC transport. Note that standard java.util.zip.ZipOutputStream and java.util.zip.GZIPOutputStream lack this feature, and thus cannot be used as an RMI transport.
|
|||||||||
| Home >> All >> edu >> emory >> mathcs >> util >> io >> [ test overview ] | PREV PACKAGE NEXT PACKAGE | ||||||||