|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.meta.java.io.InputStreamSugar
Untamed: A sweetener defining extra messages that may be e-sent to an InputStream.
Field Summary | |
private static int |
BUF_SIZE
|
Constructor Summary | |
private |
InputStreamSugar()
prevent instantiation |
Method Summary | |
static void |
__printOn(InputStream self,
TextWriter out)
Enabled: A InputStream prints as <InputStream> |
static BigInteger |
getCryptoHash(InputStream self)
Enabled: A SHA hash of the rest of the stream. |
static byte[] |
readAvailable(InputStream self)
Enabled: Reads the currently available bytes (presumably without blocking, since they are said to be available). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int BUF_SIZE
Constructor Detail |
private InputStreamSugar()
Method Detail |
public static BigInteger getCryptoHash(InputStream self) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmException
IOException
public static byte[] readAvailable(InputStream self) throws IOException
IOException
public static void __printOn(InputStream self, TextWriter out) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |