|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.util.io.ByteAdaptor
Squeezes a Byte
.
Constructor Summary | |
ByteAdaptor()
|
Method Summary | |
java.lang.Class |
getDataClass()
Returns the class (or interface) which can be encoded by this adaptor. |
java.lang.String |
getPrefix()
Returns one or more characters, each of which will be a prefix for this adaptor. |
java.lang.String |
squeeze(DataSqueezer squeezer,
java.lang.Object data)
Invoked toString() on data (which is type Byte ), and prefixs the
result. |
java.lang.Object |
unsqueeze(DataSqueezer squeezer,
java.lang.String string)
Constructs an Byte from the string, after stripping the prefix. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ByteAdaptor()
Method Detail |
public java.lang.String getPrefix()
SqueezeAdaptor
getPrefix
in interface SqueezeAdaptor
public java.lang.Class getDataClass()
SqueezeAdaptor
getDataClass
in interface SqueezeAdaptor
public java.lang.String squeeze(DataSqueezer squeezer, java.lang.Object data)
toString()
on data (which is type Byte
), and prefixs the
result.
squeeze
in interface SqueezeAdaptor
public java.lang.Object unsqueeze(DataSqueezer squeezer, java.lang.String string)
Byte
from the string, after stripping the prefix.
unsqueeze
in interface SqueezeAdaptor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |