com.imagero.uio
Interface RandomAccess

All Superinterfaces:
java.io.DataInput, java.io.DataOutput, Input, RandomAccessRO
All Known Implementing Classes:
AbstractRandomAccess

public interface RandomAccess
extends RandomAccessRO, java.io.DataOutput

interface for read/write access to data Allows unified read/write access to data - arrays, files, streams and many other.


Field Summary
 
Fields inherited from interface com.imagero.uio.RandomAccessRO
BIG_ENDIAN, LITTLE_ENDIAN
 
Method Summary
 void setLength(long newLength)
          Set length of data.
 void write(char[] data)
          Writes char array to the output
 void write(char[] data, int byteOrder)
          Writes char array to the output
 void write(char[] data, int offset, int length)
          Writes char array to the output
 void write(char[] data, int offset, int length, int byteOrder)
          Writes char array to the output
 void write(double[] data)
          Writes double array to the output
 void write(double[] data, int byteOrder)
          Writes double array to the output
 void write(double[] data, int offset, int length)
          Writes double array to the output
 void write(double[] data, int offset, int length, int byteOrder)
          Writes double array to the output
 void write(float[] data)
          Writes float array to the output
 void write(float[] data, int byteOrder)
          Writes float array to the output
 void write(float[] data, int offset, int length)
          Writes int array to the output
 void write(float[] data, int offset, int length, int byteOrder)
          Writes float array to the output
 void write(int[] data)
          Writes int array to the output
 void write(int[] data, int byteOrder)
          Writes int array to the output
 void write(int[] data, int offset, int length)
          Writes int array to the output
 void write(int[] data, int offset, int length, int byteOrder)
          Writes int array to the output
 void write(long[] data)
          Writes long array to the output
 void write(long[] data, int byteOrder)
          Writes long array to the output
 void write(long[] data, int offset, int length)
          Writes long array to the output
 void write(long[] data, int offset, int length, int byteOrder)
          Writes long array to the output
 void write(short[] data)
          Writes short array to the output
 void write(short[] data, int byteOrder)
          Writes short array to the output
 void write(short[] data, int offset, int length)
          Writes short array to the output
 void write(short[] data, int offset, int length, int byteOrder)
          Writes short array to the output
 
Methods inherited from interface com.imagero.uio.RandomAccessRO
getByteOrder, getFilePointer, length, readByteLine, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, seek, setByteOrder
 
Methods inherited from interface com.imagero.uio.Input
close, read, read, read, skip
 
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
 
Methods inherited from interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 

Method Detail

setLength

public void setLength(long newLength)
               throws java.io.IOException
Set length of data.

Parameters:
newLength - new length of data
Throws:
java.io.IOException

write

public void write(short[] data)
           throws java.io.IOException
Writes short array to the output

Parameters:
data - short array
Throws:
java.io.IOException

write

public void write(short[] data,
                  int byteOrder)
           throws java.io.IOException
Writes short array to the output

Parameters:
data - short array
byteOrder - byte order in which short array read into temporary buffer
Throws:
java.io.IOException

write

public void write(short[] data,
                  int offset,
                  int length)
           throws java.io.IOException
Writes short array to the output

Parameters:
data - short array
offset - start offset in array
length - length number of shorts to write
Throws:
java.io.IOException

write

public void write(short[] data,
                  int offset,
                  int length,
                  int byteOrder)
           throws java.io.IOException
Writes short array to the output

Parameters:
data - short array
offset - start offset in array
length - length number of shorts to write
byteOrder - byte order in which short array read into temporary buffer
Throws:
java.io.IOException

write

public void write(char[] data)
           throws java.io.IOException
Writes char array to the output

Parameters:
data - char array
Throws:
java.io.IOException

write

public void write(char[] data,
                  int byteOrder)
           throws java.io.IOException
Writes char array to the output

Parameters:
data - char array
byteOrder - byte order in which char array read into temporary buffer
Throws:
java.io.IOException

write

public void write(char[] data,
                  int offset,
                  int length)
           throws java.io.IOException
Writes char array to the output

Parameters:
data - char array
offset - start offset in array
length - length number of shorts to write
Throws:
java.io.IOException

write

public void write(char[] data,
                  int offset,
                  int length,
                  int byteOrder)
           throws java.io.IOException
Writes char array to the output

Parameters:
data - char array
offset - start offset in array
length - length number of shorts to write
byteOrder - byte order in which char array read into temporary buffer
Throws:
java.io.IOException

write

public void write(int[] data)
           throws java.io.IOException
Writes int array to the output

Parameters:
data - int array
Throws:
java.io.IOException

write

public void write(int[] data,
                  int byteOrder)
           throws java.io.IOException
Writes int array to the output

Parameters:
data - int array
byteOrder - byte order in which int array read into temporary buffer
Throws:
java.io.IOException

write

public void write(int[] data,
                  int offset,
                  int length)
           throws java.io.IOException
Writes int array to the output

Parameters:
data - int array
offset - start offset in array
length - length number of ints to write
Throws:
java.io.IOException

write

public void write(int[] data,
                  int offset,
                  int length,
                  int byteOrder)
           throws java.io.IOException
Writes int array to the output

Parameters:
data - int array
offset - start offset in array
length - length number of ints to write
byteOrder - byte order in which int array read into temporary buffer
Throws:
java.io.IOException

write

public void write(float[] data)
           throws java.io.IOException
Writes float array to the output

Parameters:
data - float array
Throws:
java.io.IOException

write

public void write(float[] data,
                  int byteOrder)
           throws java.io.IOException
Writes float array to the output

Parameters:
data - float array
byteOrder - byte order in which float array read into temporary buffer
Throws:
java.io.IOException

write

public void write(float[] data,
                  int offset,
                  int length)
           throws java.io.IOException
Writes int array to the output

Parameters:
data - int array
offset - start offset in array
length - length number of ints to write
Throws:
java.io.IOException

write

public void write(float[] data,
                  int offset,
                  int length,
                  int byteOrder)
           throws java.io.IOException
Writes float array to the output

Parameters:
data - float array
offset - start offset in array
length - length number of float to write
byteOrder - byte order in which float array read into temporary buffer
Throws:
java.io.IOException

write

public void write(long[] data)
           throws java.io.IOException
Writes long array to the output

Parameters:
data - long array
Throws:
java.io.IOException

write

public void write(long[] data,
                  int byteOrder)
           throws java.io.IOException
Writes long array to the output

Parameters:
data - long array
byteOrder - byte order in which long array read into temporary buffer
Throws:
java.io.IOException

write

public void write(long[] data,
                  int offset,
                  int length)
           throws java.io.IOException
Writes long array to the output

Parameters:
data - long array
offset - start offset in array
length - length number of longs to write
Throws:
java.io.IOException

write

public void write(long[] data,
                  int offset,
                  int length,
                  int byteOrder)
           throws java.io.IOException
Writes long array to the output

Parameters:
data - long array
offset - start offset in array
length - length number of longs to write
byteOrder - byte order in which long array read into temporary buffer
Throws:
java.io.IOException

write

public void write(double[] data)
           throws java.io.IOException
Writes double array to the output

Parameters:
data - double array
Throws:
java.io.IOException

write

public void write(double[] data,
                  int byteOrder)
           throws java.io.IOException
Writes double array to the output

Parameters:
data - double array
byteOrder - byte order in which double array read into temporary buffer
Throws:
java.io.IOException

write

public void write(double[] data,
                  int offset,
                  int length)
           throws java.io.IOException
Writes double array to the output

Parameters:
data - double array
offset - start offset in array
length - number of doubles to write
Throws:
java.io.IOException

write

public void write(double[] data,
                  int offset,
                  int length,
                  int byteOrder)
           throws java.io.IOException
Writes double array to the output

Parameters:
data - double array
offset - start offset in array
length - number of doubles to write
byteOrder - byte order in which long array read into temporary buffer
Throws:
java.io.IOException