|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.imagero.uio.io.IOutils
IOutils.java
Constructor Summary | |
IOutils()
|
Method Summary | |
static void |
closeStream(java.io.BufferedReader br)
close silently stream no exception it thrown |
static void |
closeStream(java.io.BufferedWriter bw)
close silently stream no exception it thrown |
static void |
closeStream(java.io.InputStream is)
close silently stream no exception it thrown |
static void |
closeStream(java.io.OutputStream os)
close silently stream no exception it thrown |
static void |
closeStream(java.io.RandomAccessFile raf)
close silently stream no exception it thrown |
static void |
closeStream(RandomAccessRO ro)
close silently stream no exception it thrown |
static java.lang.String |
getExtension(java.io.File f)
|
static void |
printHexByte(int value)
|
static void |
printHexInt(int value)
|
static void |
printHexLong(long value)
|
static void |
printHexShort(int value)
|
static void |
printlnHexByte(int value)
|
static void |
printlnHexInt(int value)
|
static void |
printlnHexLong(long value)
|
static void |
printlnHexShort(int value)
|
static void |
readFully(java.io.InputStream in,
byte[] b)
|
static void |
readFully(java.io.InputStream in,
byte[] b,
int off,
int len)
|
static int |
readFully2(java.io.InputStream in,
byte[] b)
this method is like readFully, but instead of throwing EOFException it returns count of read bytes |
static int |
readFully2(java.io.InputStream in,
byte[] b,
int off,
int len)
this method is like readFully, but instead of throwing EOFException it returns count of read bytes |
static void |
readFullyS(RandomAccessRO ro,
byte[] b0)
Read byte array and convert from 2's complement |
static void |
readFullyS(RandomAccessRO ro,
int[] b0)
Read int array and convert from 2's complement |
static void |
readFullyS(RandomAccessRO ro,
long[] b0)
Read short array and convert from 2's complement |
static void |
readFullyS(RandomAccessRO ro,
short[] b0)
Read short array and convert from 2's complement. |
static int |
readInt49(java.io.InputStream in)
read big-endian int |
static int |
readInt49(java.io.RandomAccessFile in)
read big-endian int |
static int |
readInt49(RandomAccessRO in)
read big-endian int |
static int |
readInt4D(java.io.InputStream in)
read little-endian int |
static int |
readInt4D(java.io.RandomAccessFile in)
read little-endian int |
static int |
readInt4D(RandomAccessRO in)
read little-endian int |
static long |
readLong49(java.io.InputStream in)
read big-endian long |
static long |
readLong49(java.io.RandomAccessFile in)
read big-endian long |
static long |
readLong49(RandomAccessRO in)
read big-endian long |
static long |
readLong4D(java.io.InputStream in)
read little-endian long |
static long |
readLong4D(java.io.RandomAccessFile in)
read little-endian long |
static long |
readLong4D(RandomAccessRO in)
read little-endian long |
static byte |
readSByte(RandomAccessRO ro)
|
static int |
readShort49(java.io.InputStream in)
read big-endian short |
static int |
readShort49(java.io.RandomAccessFile in)
read big-endian short |
static int |
readShort49(RandomAccessRO in)
read big-endian short |
static int |
readShort4D(java.io.InputStream in)
read little-endian short |
static int |
readShort4D(java.io.RandomAccessFile in)
read little-endian short |
static int |
readShort4D(RandomAccessRO in)
read little-endian short |
static int |
readSInt(RandomAccessRO ro)
|
static long |
readSLong(RandomAccessRO ro)
|
static short |
readSShort(RandomAccessRO ro)
|
static java.lang.String |
toBinaryString(byte value)
|
static java.lang.String |
toBinaryString(char value)
|
static java.lang.String |
toBinaryString(int value,
int length)
|
static java.lang.String |
toHexString(byte value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IOutils()
Method Detail |
public static void closeStream(java.io.BufferedWriter bw)
bw
- public static void closeStream(java.io.BufferedReader br)
br
- public static void closeStream(java.io.InputStream is)
is
- public static void closeStream(java.io.OutputStream os)
os
- public static void closeStream(java.io.RandomAccessFile raf)
raf
- public static void closeStream(RandomAccessRO ro)
ro
- public static java.lang.String toBinaryString(byte value)
public static java.lang.String toBinaryString(char value)
public static java.lang.String toBinaryString(int value, int length)
public static java.lang.String toHexString(byte value)
public static void printHexByte(int value)
public static void printlnHexByte(int value)
public static void printHexShort(int value)
public static void printlnHexShort(int value)
public static void printHexInt(int value)
public static void printlnHexInt(int value)
public static void printHexLong(long value)
public static void printlnHexLong(long value)
public static java.lang.String getExtension(java.io.File f)
public static int readShort4D(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static int readShort4D(java.io.RandomAccessFile in) throws java.io.IOException
java.io.IOException
public static int readShort4D(RandomAccessRO in) throws java.io.IOException
java.io.IOException
public static int readShort49(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static int readShort49(java.io.RandomAccessFile in) throws java.io.IOException
java.io.IOException
public static int readShort49(RandomAccessRO in) throws java.io.IOException
java.io.IOException
public static int readInt4D(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static int readInt4D(java.io.RandomAccessFile in) throws java.io.IOException
java.io.IOException
public static int readInt4D(RandomAccessRO in) throws java.io.IOException
java.io.IOException
public static int readInt49(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static int readInt49(java.io.RandomAccessFile in) throws java.io.IOException
java.io.IOException
public static int readInt49(RandomAccessRO in) throws java.io.IOException
java.io.IOException
public static long readLong4D(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static long readLong4D(java.io.RandomAccessFile in) throws java.io.IOException
java.io.IOException
public static long readLong4D(RandomAccessRO in) throws java.io.IOException
java.io.IOException
public static long readLong49(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static long readLong49(java.io.RandomAccessFile in) throws java.io.IOException
java.io.IOException
public static long readLong49(RandomAccessRO in) throws java.io.IOException
java.io.IOException
public static byte readSByte(RandomAccessRO ro) throws java.io.IOException
java.io.IOException
public static short readSShort(RandomAccessRO ro) throws java.io.IOException
java.io.IOException
public static int readSInt(RandomAccessRO ro) throws java.io.IOException
java.io.IOException
public static long readSLong(RandomAccessRO ro) throws java.io.IOException
java.io.IOException
public static void readFullyS(RandomAccessRO ro, byte[] b0) throws java.io.IOException
ro
- RandomAccessROb0
- byte array
java.io.IOException
public static void readFullyS(RandomAccessRO ro, short[] b0) throws java.io.IOException
ro
- RandomAccessROb0
- short array
java.io.IOException
public static void readFullyS(RandomAccessRO ro, int[] b0) throws java.io.IOException
ro
- RandomAccessROb0
- int array
java.io.IOException
public static void readFullyS(RandomAccessRO ro, long[] b0) throws java.io.IOException
ro
- RandomAccessROb0
- long array
java.io.IOException
public static void readFully(java.io.InputStream in, byte[] b) throws java.io.IOException
java.io.IOException
public static void readFully(java.io.InputStream in, byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
public static int readFully2(java.io.InputStream in, byte[] b) throws java.io.IOException
EOFException
it returns count of read bytes
in
- InputStream to readb
- byte array to fill
java.io.IOException
public static int readFully2(java.io.InputStream in, byte[] b, int off, int len) throws java.io.IOException
EOFException
it returns count of read bytes
in
- InputStream to readb
- byte array to filloff
- start offset in byte arraylen
- number of bytes to read
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |