com.imagero.uio.impl
Class AbstractRandomAccessOutput

java.lang.Object
  extended byjava.io.OutputStream
      extended bycom.imagero.uio.impl.AbstractRandomAccessOutput
All Implemented Interfaces:
AdvancedDataOutput, java.io.DataOutput, ISeekable, OSeekable, RandomAccessOutput

public abstract class AbstractRandomAccessOutput
extends java.io.OutputStream
implements RandomAccessOutput


Field Summary
protected  int byteOrder
           
 
Fields inherited from interface com.imagero.uio.ISeekable
BIG_ENDIAN, LITTLE_ENDIAN
 
Constructor Summary
AbstractRandomAccessOutput()
           
 
Method Summary
 boolean isBuffered()
           
 void write(byte[] b)
           
 void write(char[] data)
           
 void write(char[] data, int byteOrder)
           
 void write(char[] data, int offset, int length)
           
 void write(double[] data)
           
 void write(double[] data, int byteOrder)
           
 void write(double[] data, int offset, int length)
           
 void write(float[] data)
           
 void write(float[] data, int byteOrder)
           
 void write(float[] data, int offset, int length)
           
 void write(int[] data)
           
 void write(int[] data, int byteOrder)
           
 void write(int[] data, int offset, int length)
           
 void write(long[] data)
           
 void write(long[] data, int byteOrder)
           
 void write(long[] data, int offset, int length)
           
 void write(short[] data)
           
 void write(short[] data, int byteOrder)
           
 void write(short[] data, int offset, int length)
           
 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 java.io.OutputStream
close, flush, write, write
 
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.RandomAccessOutput
createOutputChild, createOutputStream, flush
 
Methods inherited from interface com.imagero.uio.OSeekable
setLength
 
Methods inherited from interface com.imagero.uio.ISeekable
close, getByteOrder, getFilePointer, length, seek, setByteOrder
 
Methods inherited from interface com.imagero.uio.AdvancedDataOutput
write, write, write, write, write, write
 
Methods inherited from interface java.io.DataOutput
write, write
 

Field Detail

byteOrder

protected int byteOrder
Constructor Detail

AbstractRandomAccessOutput

public AbstractRandomAccessOutput()
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

isBuffered

public boolean isBuffered()
Specified by:
isBuffered in interface ISeekable