|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.io.Endian
public class Endian
Reads integers stored in big or little endian streams.
| Method Summary | |
|---|---|
static char |
bigChar(java.io.InputStream input)
Reads the next big-endian unsigned 16 bit integer from the given stream. |
static int |
bigInt(java.io.InputStream input)
Reads the next big-endian signed 32-bit integer from the given stream. |
static char |
littleChar(java.io.InputStream input)
Reads the next little-endian unsigned 16 bit integer from the given stream. |
static int |
littleInt(java.io.InputStream input)
Reads the next little-endian signed 32-bit integer from the given stream. |
static short |
littleShort(java.io.InputStream input)
Reads the next little-endian signed 16-bit integer from the given stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static char littleChar(java.io.InputStream input)
throws java.io.IOException
input - the input stream to read from
java.io.IOException - if an IO error occurs
public static short littleShort(java.io.InputStream input)
throws java.io.IOException
input - the input stream to read from
java.io.IOException - if an IO error occurs
public static int littleInt(java.io.InputStream input)
throws java.io.IOException
input - the input stream to read from
java.io.IOException - if an IO error occurs
public static char bigChar(java.io.InputStream input)
throws java.io.IOException
input - the input stream to read from
java.io.IOException - if an IO error occurs
public static int bigInt(java.io.InputStream input)
throws java.io.IOException
input - the input stream to read from
java.io.IOException - if an IO error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||