|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.clientserver.StreamConverter
Helper class to read bytes from an InputStream without reading the whole stream and without blocking if the stream has ended before all data could be read. The first two bytes in each part that should be read define the size in hi-byte/low-byte format. The converter will try to read the number of bytes indicated by this value from the stream and returns with the result.
Constructor Summary | |
StreamConverter()
|
Method Summary | |
static byte[] |
convert(java.io.InputStream is)
Reads data from an InputStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StreamConverter()
Method Detail |
public static byte[] convert(java.io.InputStream is)
is
- The stream to read from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |