public final class StreamUtils extends Object
| Constructor and Description |
|---|
StreamUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
readFully(InputStream is,
byte[] bytes) |
static void |
readFully(InputStream is,
byte[] bytes,
int off,
int len) |
static int |
readInt16BE(InputStream is) |
static int |
readInt16LE(InputStream is) |
static int |
readInt24BE(InputStream is) |
static int |
readInt24LE(InputStream is) |
static int |
readInt32BE(InputStream is) |
static int |
readInt32LE(InputStream is) |
static int |
readInt8(InputStream is) |
static int |
readPackedSignedInt32(InputStream is) |
static int |
readPackedUnsignedInt31(InputStream is) |
static int |
readPackedUnsignedInt32(InputStream is) |
static void |
skipBytes(InputStream is,
long skip) |
static void |
writeInt16BE(OutputStream os,
int val) |
static void |
writeInt16BE(OutputStream os,
long val) |
static void |
writeInt16LE(OutputStream os,
int val) |
static void |
writeInt16LE(OutputStream os,
long val) |
static void |
writeInt24BE(OutputStream os,
int val) |
static void |
writeInt24BE(OutputStream os,
long val) |
static void |
writeInt24LE(OutputStream os,
int val) |
static void |
writeInt24LE(OutputStream os,
long val) |
static void |
writeInt32BE(OutputStream os,
int val) |
static void |
writeInt32BE(OutputStream os,
long val) |
static void |
writeInt32LE(OutputStream os,
int val) |
static void |
writeInt32LE(OutputStream os,
long val) |
static void |
writeInt8(OutputStream os,
int val) |
static void |
writeInt8(OutputStream os,
long val) |
static void |
writePackedUnsignedInt31(OutputStream os,
int val) |
static void |
writePackedUnsignedInt32(OutputStream os,
int val) |
public static int readInt8(InputStream is) throws IOException
IOExceptionpublic static int readInt16LE(InputStream is) throws IOException
IOExceptionpublic static int readInt16BE(InputStream is) throws IOException
IOExceptionpublic static int readInt24LE(InputStream is) throws IOException
IOExceptionpublic static int readInt24BE(InputStream is) throws IOException
IOExceptionpublic static int readInt32LE(InputStream is) throws IOException
IOExceptionpublic static int readInt32BE(InputStream is) throws IOException
IOExceptionpublic static void skipBytes(InputStream is, long skip) throws IOException
IOExceptionpublic static int readPackedUnsignedInt31(InputStream is) throws IOException
IOExceptionpublic static int readPackedUnsignedInt32(InputStream is) throws IOException
IOExceptionpublic static int readPackedSignedInt32(InputStream is) throws IOException
IOExceptionpublic static void writeInt8(OutputStream os, int val) throws IOException
IOExceptionpublic static void writeInt8(OutputStream os, long val) throws IOException
IOExceptionpublic static void writeInt16LE(OutputStream os, int val) throws IOException
IOExceptionpublic static void writeInt16LE(OutputStream os, long val) throws IOException
IOExceptionpublic static void writeInt16BE(OutputStream os, int val) throws IOException
IOExceptionpublic static void writeInt16BE(OutputStream os, long val) throws IOException
IOExceptionpublic static void writeInt24LE(OutputStream os, int val) throws IOException
IOExceptionpublic static void writeInt24LE(OutputStream os, long val) throws IOException
IOExceptionpublic static void writeInt24BE(OutputStream os, int val) throws IOException
IOExceptionpublic static void writeInt24BE(OutputStream os, long val) throws IOException
IOExceptionpublic static void writeInt32LE(OutputStream os, int val) throws IOException
IOExceptionpublic static void writeInt32LE(OutputStream os, long val) throws IOException
IOExceptionpublic static void writeInt32BE(OutputStream os, int val) throws IOException
IOExceptionpublic static void writeInt32BE(OutputStream os, long val) throws IOException
IOExceptionpublic static void writePackedUnsignedInt31(OutputStream os, int val) throws IOException
IOExceptionpublic static void writePackedUnsignedInt32(OutputStream os, int val) throws IOException
IOExceptionpublic static void readFully(InputStream is, byte[] bytes) throws IOException
IOExceptionpublic static void readFully(InputStream is, byte[] bytes, int off, int len) throws IOException
IOExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.