public class IO extends Object
| Constructor and Description |
|---|
IO() |
| Modifier and Type | Method and Description |
|---|---|
static int |
padSize(int ofs) |
static void |
read(InputStream src,
byte[] buffer) |
static void |
read(InputStream src,
byte[] buffer,
int ofs,
int len) |
static int |
readS1(InputStream src) |
static int |
readS2(InputStream src) |
static int |
readU1(InputStream src) |
static char |
readU2(InputStream src) |
static int |
readU4(InputStream src) |
static void |
write(OutputStream dest,
byte[] data,
int ofs,
int len) |
static void |
writeS1(OutputStream dest,
int s1) |
static void |
writeS2(OutputStream dest,
int s2)
int c simplifies checking, casting
|
static void |
writeU1(OutputStream dest,
int u1) |
static void |
writeU2(OutputStream dest,
int u2)
int c simplifies checking, casting
|
static void |
writeU4(OutputStream dest,
int u4)
int c simplifies checking, casting
|
public static int padSize(int ofs)
public static void read(InputStream src, byte[] buffer) throws IOException
IOExceptionpublic static void read(InputStream src, byte[] buffer, int ofs, int len) throws IOException
IOExceptionpublic static int readU1(InputStream src) throws IOException
IOExceptionpublic static int readS1(InputStream src) throws IOException
IOExceptionpublic static char readU2(InputStream src) throws IOException
IOExceptionpublic static int readS2(InputStream src) throws IOException
IOExceptionpublic static int readU4(InputStream src) throws IOException
IOExceptionpublic static void write(OutputStream dest, byte[] data, int ofs, int len) throws IOException
IOExceptionpublic static void writeU1(OutputStream dest, int u1) throws IOException
IOExceptionpublic static void writeS1(OutputStream dest, int s1) throws IOException
IOExceptionpublic static void writeU2(OutputStream dest, int u2) throws IOException
IOExceptionpublic static void writeS2(OutputStream dest, int s2) throws IOException
IOExceptionpublic static void writeU4(OutputStream dest, int u4) throws IOException
IOExceptionCopyright © 1998–2017 1&1. All rights reserved.