com.imagero.uio.impl
Class AbstractRandomAccessIO

java.lang.Object
  extended byjava.io.InputStream
      extended bycom.imagero.uio.impl.AbstractRandomAccessInput
          extended bycom.imagero.uio.impl.AbstractRandomAccessIO
All Implemented Interfaces:
AdvancedDataInput, AdvancedDataOutput, java.io.DataInput, java.io.DataOutput, Input, ISeekable, OSeekable, RandomAccessInput, RandomAccessIO, RandomAccessOutput
Direct Known Subclasses:
AbstractRandomAccessArray, BufferedRandomAccessIO, ByteArrayRandomAccessIO, RandomAccessFileWrapper

public abstract class AbstractRandomAccessIO
extends AbstractRandomAccessInput
implements RandomAccessIO


Field Summary
 
Fields inherited from class com.imagero.uio.impl.AbstractRandomAccessInput
byteOrder
 
Fields inherited from interface com.imagero.uio.ISeekable
BIG_ENDIAN, LITTLE_ENDIAN
 
Constructor Summary
AbstractRandomAccessIO()
           
 
Method Summary
 void flush()
           
protected static byte[] transform(char[] sh, int offset, int length, int byteOrder)
           
protected static byte[] transform(double[] source, int offset, int length, int byteOrder)
           
protected static byte[] transform(float[] source, int offset, int length, int byteOrder)
           
protected static byte[] transform(int[] source, int offset, int length, int byteOrder)
           
protected static byte[] transform(long[] source, int offset, int length, int byteOrder)
           
 void write(byte[] b)
           
 void write(char[] data)
           
 void write(char[] data, int byteOrder)
           
 void write(char[] data, int offset, int length)
           
 void write(char[] sh, int offset, int length, int byteOrder)
           
 void write(double[] data)
           
 void write(double[] data, int byteOrder)
           
 void write(double[] data, int offset, int length)
           
 void write(double[] source, int offset, int length, int byteOrder)
           
 void write(float[] data)
           
 void write(float[] data, int byteOrder)
           
 void write(float[] data, int offset, int length)
           
 void write(float[] source, int offset, int length, int byteOrder)
           
 void write(int[] data)
           
 void write(int[] data, int byteOrder)
           
 void write(int[] data, int offset, int length)
           
 void write(int[] source, int offset, int length, int byteOrder)
           
 void write(long[] data)
           
 void write(long[] data, int byteOrder)
           
 void write(long[] data, int offset, int length)
           
 void write(long[] source, int offset, int length, int byteOrder)
           
 void write(short[] data)
           
 void write(short[] data, int byteOrder)
           
 void write(short[] data, int offset, int length)
           
 void write(short[] sh, int offset, int length, int byteOrder)
           
 void writeBoolean(boolean v)
           
 void writeByte(int v)
           
 void writeBytes(java.lang.String s)
           
 void writeChar(int v)
           
 void writeChar(int v, int byteOrder)
           
 void writeChars(java.lang.String s)
           
 void writeDouble(double v)
           
 void writeDouble(double v, int byteOrder)
           
 void writeFloat(float v)
           
 void writeFloat(float v, int byteOrder)
           
 void writeInt(int v)
           
 void writeInt(int v, int byteOrder)
           
 void writeLong(long v)
           
 void writeLong(long v, int byteOrder)
           
 void writeShort(int v)
           
 void writeShort(int v, int byteOrder)
           
 void writeUTF(java.lang.String str)
           
 
Methods inherited from class com.imagero.uio.impl.AbstractRandomAccessInput
getByteOrder, isBuffered, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, readBoolean, readByte, readByteLine, readByteLine, readChar, readChar, readDouble, readDouble, readFloat, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readInt, readLine, readLong, readLong, readShort, readShort, readUnsignedByte, readUnsignedShort, readUnsignedShort, readUTF, setByteOrder, skipBytes
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.imagero.uio.RandomAccessIO
createIOChild
 
Methods inherited from interface com.imagero.uio.RandomAccessInput
createInputChild, createInputStream
 
Methods inherited from interface com.imagero.uio.Input
read, read, read, skip
 
Methods inherited from interface com.imagero.uio.ISeekable
close, getByteOrder, getFilePointer, isBuffered, length, seek, setByteOrder
 
Methods inherited from interface com.imagero.uio.AdvancedDataInput
read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, readByteLine, readByteLine, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLong, readShort, readUnsignedShort
 
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 com.imagero.uio.RandomAccessOutput
createOutputChild, createOutputStream
 
Methods inherited from interface com.imagero.uio.OSeekable
setLength
 
Methods inherited from interface java.io.DataOutput
write, write
 

Constructor Detail

AbstractRandomAccessIO

public AbstractRandomAccessIO()
Method Detail

write

public final void write(short[] data)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(short[] data,
                        int byteOrder)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(short[] data,
                        int offset,
                        int length)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(char[] data)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(char[] data,
                        int byteOrder)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(char[] data,
                        int offset,
                        int length)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(int[] data)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(int[] data,
                        int byteOrder)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(int[] data,
                        int offset,
                        int length)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(float[] data)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(float[] data,
                        int byteOrder)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(float[] data,
                        int offset,
                        int length)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(long[] data)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(long[] data,
                        int byteOrder)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(long[] data,
                        int offset,
                        int length)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(double[] data)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(double[] data,
                        int byteOrder)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(double[] data,
                        int offset,
                        int length)
                 throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public final void write(byte[] b)
                 throws java.io.IOException
Specified by:
write in interface java.io.DataOutput
Throws:
java.io.IOException

writeBoolean

public final void writeBoolean(boolean v)
                        throws java.io.IOException
Specified by:
writeBoolean in interface java.io.DataOutput
Throws:
java.io.IOException

writeByte

public final void writeByte(int v)
                     throws java.io.IOException
Specified by:
writeByte in interface java.io.DataOutput
Throws:
java.io.IOException

writeShort

public final void writeShort(int v)
                      throws java.io.IOException
Specified by:
writeShort in interface java.io.DataOutput
Throws:
java.io.IOException

writeShort

public final void writeShort(int v,
                             int byteOrder)
                      throws java.io.IOException
Specified by:
writeShort in interface AdvancedDataOutput
Throws:
java.io.IOException

writeChar

public final void writeChar(int v)
                     throws java.io.IOException
Specified by:
writeChar in interface java.io.DataOutput
Throws:
java.io.IOException

writeChar

public final void writeChar(int v,
                            int byteOrder)
                     throws java.io.IOException
Specified by:
writeChar in interface AdvancedDataOutput
Throws:
java.io.IOException

writeInt

public final void writeInt(int v)
                    throws java.io.IOException
Specified by:
writeInt in interface java.io.DataOutput
Throws:
java.io.IOException

writeInt

public final void writeInt(int v,
                           int byteOrder)
                    throws java.io.IOException
Specified by:
writeInt in interface AdvancedDataOutput
Throws:
java.io.IOException

writeLong

public final void writeLong(long v)
                     throws java.io.IOException
Specified by:
writeLong in interface java.io.DataOutput
Throws:
java.io.IOException

writeLong

public final void writeLong(long v,
                            int byteOrder)
                     throws java.io.IOException
Specified by:
writeLong in interface AdvancedDataOutput
Throws:
java.io.IOException

writeFloat

public final void writeFloat(float v)
                      throws java.io.IOException
Specified by:
writeFloat in interface java.io.DataOutput
Throws:
java.io.IOException

writeFloat

public final void writeFloat(float v,
                             int byteOrder)
                      throws java.io.IOException
Specified by:
writeFloat in interface AdvancedDataOutput
Throws:
java.io.IOException

writeDouble

public final void writeDouble(double v)
                       throws java.io.IOException
Specified by:
writeDouble in interface java.io.DataOutput
Throws:
java.io.IOException

writeDouble

public final void writeDouble(double v,
                              int byteOrder)
                       throws java.io.IOException
Specified by:
writeDouble in interface AdvancedDataOutput
Throws:
java.io.IOException

writeBytes

public final void writeBytes(java.lang.String s)
                      throws java.io.IOException
Specified by:
writeBytes in interface java.io.DataOutput
Throws:
java.io.IOException

writeChars

public final void writeChars(java.lang.String s)
                      throws java.io.IOException
Specified by:
writeChars in interface java.io.DataOutput
Throws:
java.io.IOException

writeUTF

public final void writeUTF(java.lang.String str)
                    throws java.io.IOException
Specified by:
writeUTF in interface java.io.DataOutput
Throws:
java.io.IOException

write

public void write(short[] sh,
                  int offset,
                  int length,
                  int byteOrder)
           throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

write

public void write(char[] sh,
                  int offset,
                  int length,
                  int byteOrder)
           throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

transform

protected static byte[] transform(char[] sh,
                                  int offset,
                                  int length,
                                  int byteOrder)

write

public void write(int[] source,
                  int offset,
                  int length,
                  int byteOrder)
           throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

transform

protected static byte[] transform(int[] source,
                                  int offset,
                                  int length,
                                  int byteOrder)

write

public void write(float[] source,
                  int offset,
                  int length,
                  int byteOrder)
           throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

transform

protected static byte[] transform(float[] source,
                                  int offset,
                                  int length,
                                  int byteOrder)

write

public void write(long[] source,
                  int offset,
                  int length,
                  int byteOrder)
           throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

transform

protected static byte[] transform(long[] source,
                                  int offset,
                                  int length,
                                  int byteOrder)

write

public void write(double[] source,
                  int offset,
                  int length,
                  int byteOrder)
           throws java.io.IOException
Specified by:
write in interface AdvancedDataOutput
Throws:
java.io.IOException

transform

protected static byte[] transform(double[] source,
                                  int offset,
                                  int length,
                                  int byteOrder)

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface RandomAccessOutput
Throws:
java.io.IOException