Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.imagero.uio.io
Class IOutils  view IOutils download IOutils.java

java.lang.Object
  extended bycom.imagero.uio.io.IOutils

public class IOutils
extends java.lang.Object

IOutils.java


Field Summary
(package private) static byte b0
           
(package private) static byte b1
           
(package private) static byte[] digits
           
(package private) static int[] mask
           
 
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(com.imagero.uio.RandomAccessRO ro)
          close silently stream
no exception it thrown
static java.lang.String getExtension(java.io.File f)
           
static void printHexByte(int value)
           
(package private) static void printHexImpl(int value, int length)
           
(package private) static void printHexImpl(long value, int length)
           
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(com.imagero.uio.RandomAccessRO ro, byte[] b0)
          Read byte array and convert from 2's complement
static void readFullyS(com.imagero.uio.RandomAccessRO ro, int[] b0)
          Read int array and convert from 2's complement
static void readFullyS(com.imagero.uio.RandomAccessRO ro, long[] b0)
          Read short array and convert from 2's complement
static void readFullyS(com.imagero.uio.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(com.imagero.uio.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(com.imagero.uio.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(com.imagero.uio.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(com.imagero.uio.RandomAccessRO in)
          read little-endian long
static byte readSByte(com.imagero.uio.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(com.imagero.uio.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(com.imagero.uio.RandomAccessRO in)
          read little-endian short
static int readSInt(com.imagero.uio.RandomAccessRO ro)
           
static long readSLong(com.imagero.uio.RandomAccessRO ro)
           
static short readSShort(com.imagero.uio.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)
           
private static java.lang.String toUnsignedString(int i, int shift)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mask

static final int[] mask

b0

static byte b0

b1

static byte b1

digits

static final byte[] digits
Constructor Detail

IOutils

public IOutils()
Method Detail

closeStream

public static void closeStream(java.io.BufferedWriter bw)
close silently stream
no exception it thrown


closeStream

public static void closeStream(java.io.BufferedReader br)
close silently stream
no exception it thrown


closeStream

public static void closeStream(java.io.InputStream is)
close silently stream
no exception it thrown


closeStream

public static void closeStream(java.io.OutputStream os)
close silently stream
no exception it thrown


closeStream

public static void closeStream(java.io.RandomAccessFile raf)
close silently stream
no exception it thrown


closeStream

public static void closeStream(com.imagero.uio.RandomAccessRO ro)
close silently stream
no exception it thrown


toBinaryString

public static java.lang.String toBinaryString(byte value)

toBinaryString

public static java.lang.String toBinaryString(char value)

toBinaryString

public static java.lang.String toBinaryString(int value,
                                              int length)

toHexString

public static java.lang.String toHexString(byte value)

toUnsignedString

private static java.lang.String toUnsignedString(int i,
                                                 int shift)

printHexByte

public static void printHexByte(int value)

printlnHexByte

public static void printlnHexByte(int value)

printHexShort

public static void printHexShort(int value)

printlnHexShort

public static void printlnHexShort(int value)

printHexInt

public static void printHexInt(int value)

printlnHexInt

public static void printlnHexInt(int value)

printHexLong

public static void printHexLong(long value)

printlnHexLong

public static void printlnHexLong(long value)

printHexImpl

static void printHexImpl(long value,
                         int length)

printHexImpl

static void printHexImpl(int value,
                         int length)

getExtension

public static java.lang.String getExtension(java.io.File f)

readShort4D

public static int readShort4D(java.io.InputStream in)
                       throws java.io.IOException
read little-endian short


readShort4D

public static int readShort4D(java.io.RandomAccessFile in)
                       throws java.io.IOException
read little-endian short


readShort4D

public static int readShort4D(com.imagero.uio.RandomAccessRO in)
                       throws java.io.IOException
read little-endian short


readShort49

public static int readShort49(java.io.InputStream in)
                       throws java.io.IOException
read big-endian short


readShort49

public static int readShort49(java.io.RandomAccessFile in)
                       throws java.io.IOException
read big-endian short


readShort49

public static int readShort49(com.imagero.uio.RandomAccessRO in)
                       throws java.io.IOException
read big-endian short


readInt4D

public static int readInt4D(java.io.InputStream in)
                     throws java.io.IOException
read little-endian int


readInt4D

public static int readInt4D(java.io.RandomAccessFile in)
                     throws java.io.IOException
read little-endian int


readInt4D

public static int readInt4D(com.imagero.uio.RandomAccessRO in)
                     throws java.io.IOException
read little-endian int


readInt49

public static int readInt49(java.io.InputStream in)
                     throws java.io.IOException
read big-endian int


readInt49

public static int readInt49(java.io.RandomAccessFile in)
                     throws java.io.IOException
read big-endian int


readInt49

public static int readInt49(com.imagero.uio.RandomAccessRO in)
                     throws java.io.IOException
read big-endian int


readLong4D

public static long readLong4D(java.io.InputStream in)
                       throws java.io.IOException
read little-endian long


readLong4D

public static long readLong4D(java.io.RandomAccessFile in)
                       throws java.io.IOException
read little-endian long


readLong4D

public static long readLong4D(com.imagero.uio.RandomAccessRO in)
                       throws java.io.IOException
read little-endian long


readLong49

public static long readLong49(java.io.InputStream in)
                       throws java.io.IOException
read big-endian long


readLong49

public static long readLong49(java.io.RandomAccessFile in)
                       throws java.io.IOException
read big-endian long


readLong49

public static long readLong49(com.imagero.uio.RandomAccessRO in)
                       throws java.io.IOException
read big-endian long


readSByte

public static byte readSByte(com.imagero.uio.RandomAccessRO ro)
                      throws java.io.IOException

readSShort

public static short readSShort(com.imagero.uio.RandomAccessRO ro)
                        throws java.io.IOException

readSInt

public static int readSInt(com.imagero.uio.RandomAccessRO ro)
                    throws java.io.IOException

readSLong

public static long readSLong(com.imagero.uio.RandomAccessRO ro)
                      throws java.io.IOException

readFullyS

public static void readFullyS(com.imagero.uio.RandomAccessRO ro,
                              byte[] b0)
                       throws java.io.IOException
Read byte array and convert from 2's complement


readFullyS

public static void readFullyS(com.imagero.uio.RandomAccessRO ro,
                              short[] b0)
                       throws java.io.IOException
Read short array and convert from 2's complement.


readFullyS

public static void readFullyS(com.imagero.uio.RandomAccessRO ro,
                              int[] b0)
                       throws java.io.IOException
Read int array and convert from 2's complement


readFullyS

public static void readFullyS(com.imagero.uio.RandomAccessRO ro,
                              long[] b0)
                       throws java.io.IOException
Read short array and convert from 2's complement


readFully

public static void readFully(java.io.InputStream in,
                             byte[] b)
                      throws java.io.IOException

readFully

public static void readFully(java.io.InputStream in,
                             byte[] b,
                             int off,
                             int len)
                      throws java.io.IOException

readFully2

public static int readFully2(java.io.InputStream in,
                             byte[] b)
                      throws java.io.IOException
this method is like readFully, but instead of throwing EOFException it returns count of read bytes


readFully2

public static int readFully2(java.io.InputStream in,
                             byte[] b,
                             int off,
                             int len)
                      throws java.io.IOException
this method is like readFully, but instead of throwing EOFException it returns count of read bytes