public class Endian
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static char littleChar(java.io.InputStream input)
throws java.io.IOException
input - the input stream to read fromjava.io.IOException - if an IO error occurspublic static short littleShort(java.io.InputStream input)
throws java.io.IOException
input - the input stream to read fromjava.io.IOException - if an IO error occurspublic static int littleInt(java.io.InputStream input)
throws java.io.IOException
input - the input stream to read fromjava.io.IOException - if an IO error occurspublic static char bigChar(java.io.InputStream input)
throws java.io.IOException
input - the input stream to read fromjava.io.IOException - if an IO error occurspublic static int bigInt(java.io.InputStream input)
throws java.io.IOException
input - the input stream to read fromjava.io.IOException - if an IO error occursCopyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.