Package org.apache.tapestry.util.io

Some interesting I/O classes.

See:
          Description

Interface Summary
SqueezeAdaptor Interface which defines a class used to convert data for a specific Java type into a String format (squeeze it), or convert from a String back into a Java type (unsqueeze).
 

Class Summary
BinaryDumpOutputStream A kind of super-formatter.
BooleanAdaptor Squeezes a Boolean.
ByteAdaptor Squeezes a Byte.
CharacterAdaptor Squeezes a Character.
ComponentAddressAdaptor Squeezes a org.apache.tapestry.ComponentAddress.
CompressedDataEncoder Utility class used by IRequestCycle to compress IdAllocator state.
DataSqueezerImpl A class used to convert arbitrary objects to Strings and back.
DataSqueezerUtil Utility methods used when testing code that uses a DataSqueezer.
DoubleAdaptor Squeezes a Double.
FloatAdaptor Squeezes a Float.
GzipUtil Encapsulates logic related to various gzip compression schemes and their rules as they apply to different browsers.
IntegerAdaptor Squeezes a Integer.
LongAdaptor Squeezes a Long.
ResolvingObjectInputStream Specialized subclass of ObjectInputStreamthat knows how to resolve classes with a non-default class loader (represented by an instance of ClassResolver).
SerializableAdaptor The most complicated of the adaptors, this one takes an arbitrary serializable object, serializes it to binary (possibly compressing the stream along the way), and encodes it in a Base64 encoding.
ShortAdaptor Squeezes a Short.
StringAdaptor Squeezes a String (which is pretty simple, most of the time).
TeeOutputStream An output stream that copies bytes pushed through it to two other output streams.
 

Package org.apache.tapestry.util.io Description

Some interesting I/O classes. BinaryDumpOutputStream formats a stream of bytes into a human readable presentation, much like the Unix command line tool od.

org.apache.tapestry.util.io.DataSqueezer is used to squeeze and unsqueeze basic scalar types, Strings and serializable objects into a String format. The eventual purpose is to safely encode information into URLs or as HTTP Cookies.

Author:
Howard Lewis Ship hlship@apache.org


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.