public class Endian extends Object
| Modifier and Type | Method and Description |
|---|---|
static char |
bigChar(InputStream input)
Reads the next big-endian unsigned 16 bit integer from the
given stream.
|
static int |
bigInt(InputStream input)
Reads the next big-endian signed 32-bit integer from the
given stream.
|
static char |
littleChar(InputStream input)
Reads the next little-endian unsigned 16 bit integer from the
given stream.
|
static int |
littleInt(InputStream input)
Reads the next little-endian signed 32-bit integer from the
given stream.
|
static short |
littleShort(InputStream input)
Reads the next little-endian signed 16-bit integer from the
given stream.
|
public static char littleChar(InputStream input) throws IOException
input - the input stream to read fromIOException - if an IO error occurspublic static short littleShort(InputStream input) throws IOException
input - the input stream to read fromIOException - if an IO error occurspublic static int littleInt(InputStream input) throws IOException
input - the input stream to read fromIOException - if an IO error occurspublic static char bigChar(InputStream input) throws IOException
input - the input stream to read fromIOException - if an IO error occurspublic static int bigInt(InputStream input) throws IOException
input - the input stream to read fromIOException - if an IO error occursCopyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.