|
||||||||||
| 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(RandomAccessInput ro)
close silently stream no exception it thrown |
static void |
closeStream(RandomAccessIO ro)
|
static void |
closeStream(RandomAccessOutput ro)
|
static void |
convertFrom2C(byte[] b0)
Convert byte array from 2's complement |
static void |
convertFrom2C(int[] b0)
Convert int array from 2's complement |
static void |
convertFrom2C(long[] b0)
Convert long array from 2's complement |
static void |
convertFrom2C(short[] b0)
Convert short array from 2's complement |
static long |
copy(java.io.File src,
java.io.File dest)
Copy file. |
static long |
copy(java.io.InputStream in,
java.io.DataOutput out)
copy data from source to destination stream |
static long |
copy(java.io.InputStream in,
java.io.OutputStream out)
copy data from in to out |
static long |
copy(long length,
java.io.InputStream in,
java.io.DataOutput out)
copy length bytes from source to destination stream |
static long |
copy(long length,
java.io.InputStream in,
java.io.OutputStream out)
copy length bytes from in to out |
static long |
copy(long offset,
long length,
RandomAccessInput in,
java.io.DataOutput out)
copy data from source to destination stream |
static long |
copy(long offset,
long length,
RandomAccessInput in,
java.io.OutputStream out)
copy data from source to destination stream |
static long |
copy(RandomAccessInput in,
long offset,
java.io.DataOutput out)
copy data from source to destination stream |
static long |
copy(RandomAccessInput in,
long offset,
java.io.OutputStream out)
copy data from in to out |
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(java.io.DataInput ro,
byte[] b0)
Read byte array and convert from 2's complement |
static void |
readFullyS(RandomAccessInput ro,
int[] b0)
Read int array and convert from 2's complement |
static void |
readFullyS(RandomAccessInput ro,
long[] b0)
Read short array and convert from 2's complement |
static void |
readFullyS(RandomAccessInput ro,
short[] b0)
Read short array and convert from 2's complement. |
static int |
readInt(java.io.DataInput in,
int byteOrder)
read big/little-endian int |
static int |
readInt(java.io.InputStream in,
int byteOrder)
read big/little-endian int |
static int |
readInt49(java.io.DataInput in)
read big-endian int |
static int |
readInt49(java.io.InputStream in)
read big-endian int |
static int |
readInt4D(java.io.DataInput in)
read big-endian int |
static int |
readInt4D(java.io.InputStream in)
read little-endian int |
static long |
readLong49(java.io.DataInput in)
read big-endian long |
static long |
readLong49(java.io.InputStream in)
read big-endian long |
static long |
readLong4D(java.io.DataInput in)
read little-endian long |
static long |
readLong4D(java.io.InputStream in)
read little-endian long |
static byte |
readSByte(java.io.DataInput ro)
|
static int |
readShort(java.io.DataInput in,
int byteOrder)
|
static int |
readShort(java.io.InputStream in,
int byteOrder)
read big/little-endian short |
static int |
readShort49(java.io.DataInput in)
read big-endian short |
static int |
readShort49(java.io.InputStream in)
read big-endian short |
static int |
readShort4D(java.io.DataInput in)
read little-endian short |
static int |
readShort4D(java.io.InputStream in)
read little-endian short |
static int |
readSInt(java.io.DataInput ro)
|
static long |
readSLong(java.io.DataInput ro)
|
static short |
readSShort(java.io.DataInput 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(RandomAccessInput ro)
ro - public static void closeStream(RandomAccessOutput ro)
public static void closeStream(RandomAccessIO 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.DataInput 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.DataInput 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.DataInput 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.DataInput 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.DataInput 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.DataInput in)
throws java.io.IOException
java.io.IOException
public static byte readSByte(java.io.DataInput ro)
throws java.io.IOException
java.io.IOException
public static short readSShort(java.io.DataInput ro)
throws java.io.IOException
java.io.IOException
public static int readSInt(java.io.DataInput ro)
throws java.io.IOException
java.io.IOException
public static long readSLong(java.io.DataInput ro)
throws java.io.IOException
java.io.IOException
public static void readFullyS(java.io.DataInput ro,
byte[] b0)
throws java.io.IOException
ro - RandomAccessROb0 - byte array
java.io.IOExceptionpublic static final void convertFrom2C(byte[] b0)
public static void readFullyS(RandomAccessInput ro,
short[] b0)
throws java.io.IOException
ro - RandomAccessROb0 - short array
java.io.IOExceptionpublic static final void convertFrom2C(short[] b0)
public static void readFullyS(RandomAccessInput ro,
int[] b0)
throws java.io.IOException
ro - RandomAccessROb0 - int array
java.io.IOExceptionpublic static final void convertFrom2C(int[] b0)
public static void readFullyS(RandomAccessInput ro,
long[] b0)
throws java.io.IOException
ro - RandomAccessROb0 - long array
java.io.IOExceptionpublic static final void convertFrom2C(long[] b0)
public static void readFully(java.io.InputStream in,
byte[] b)
throws UnexpectedEOFException,
java.io.IOException
UnexpectedEOFException
java.io.IOException
public static void readFully(java.io.InputStream in,
byte[] b,
int off,
int len)
throws UnexpectedEOFException,
java.io.IOException
UnexpectedEOFException
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
public static long copy(long length,
java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
length bytes from in to out
length - amount of bytes to copyin - source InputStreamout - destination OutputStream
java.io.IOException
public static long copy(long length,
java.io.InputStream in,
java.io.DataOutput out)
throws java.io.IOException
length bytes from source to destination stream
length - amount of bytes to copyin - source streamout - destination stream
java.io.IOException
public static long copy(java.io.File src,
java.io.File dest)
throws java.io.IOException
src - source filedest - destination file
java.io.IOException
public static long copy(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
in to out
in - source InputStreamout - destination OutputStream
java.io.IOException
public static long copy(java.io.InputStream in,
java.io.DataOutput out)
throws java.io.IOException
in - source streamout - destination stream
java.io.IOException
public static long copy(RandomAccessInput in,
long offset,
java.io.OutputStream out)
throws java.io.IOException
in to out
in - source RandomAccessROoffset - offset in inout - destination OutputStream
java.io.IOException
public static long copy(RandomAccessInput in,
long offset,
java.io.DataOutput out)
throws java.io.IOException
in - source streamoffset - offset in source streamout - destination stream
java.io.IOException
public static long copy(long offset,
long length,
RandomAccessInput in,
java.io.OutputStream out)
throws java.io.IOException
offset - offset in source streamlength - amount of bytes to copyin - source streamout - destination stream
java.io.IOException
public static long copy(long offset,
long length,
RandomAccessInput in,
java.io.DataOutput out)
throws java.io.IOException
offset - offset in source streamlength - amount of bytes to copyin - source streamout - destination stream
java.io.IOException
public static int readShort(java.io.InputStream in,
int byteOrder)
throws java.io.IOException
java.io.IOException
public static int readShort(java.io.DataInput in,
int byteOrder)
throws java.io.IOException
java.io.IOException
public static int readInt(java.io.InputStream in,
int byteOrder)
throws java.io.IOException
java.io.IOException
public static int readInt(java.io.DataInput in,
int byteOrder)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||