|
|
||||||||||
| 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.DataOutputSugar
Untamed: A sweetener defining extra messages that may be e-sent to a DataOutput
| Constructor Summary | |
private |
DataOutputSugar()
prevent instantiation |
| Method Summary | |
static int |
writeWholeNum(DataOutput self,
BigInteger wholeNum)
Enabled: Encodes a whole number (a non-negative integer) using the Waterken Doc ExtensionNumber format. |
private static int |
writeWholeNum(DataOutput self,
BigInteger wholeNum,
int highbit)
Because this needs to write in big-endian order, but the natural algorithm generates in little endian order, this uses recursion to do the reversal. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private DataOutputSugar()
| Method Detail |
public static int writeWholeNum(DataOutput self,
BigInteger wholeNum)
throws IOException
self - wholeNum -
IOException
private static int writeWholeNum(DataOutput self,
BigInteger wholeNum,
int highbit)
throws IOException
self - wholeNum - highbit - Either 0x00 or 0x80, which is or-ed into the low order
byte.
IOException
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||