com.fernsroth.easyio
Interface IRandomAccessSource

All Superinterfaces:
IInputStream, IOutputStream
All Known Implementing Classes:
EasyIORandomAccessFile, RandomAccessByteArray

public interface IRandomAccessSource
extends IInputStream, IOutputStream

Author:
Joseph M. Ferner (Near Infinity Corporation)

Method Summary
 long getFilePointer()
          gets the current location.
 long length()
          gets the length.
 void seek(long newLocation)
          sets the location.
 void setLength(long length)
          sets the length.
 
Methods inherited from interface com.fernsroth.easyio.IInputStream
read, read, read
 
Methods inherited from interface com.fernsroth.easyio.IOutputStream
write, write, write
 

Method Detail

seek

void seek(long newLocation)
          throws java.io.IOException
sets the location.

Parameters:
newLocation - the location.
Throws:
java.io.IOException

getFilePointer

long getFilePointer()
                    throws java.io.IOException
gets the current location.

Returns:
the current location.
Throws:
java.io.IOException

setLength

void setLength(long length)
               throws java.io.IOException
sets the length.

Parameters:
length - the length.
Throws:
java.io.IOException

length

long length()
            throws java.io.IOException
gets the length.

Returns:
the length.
Throws:
java.io.IOException


Copyright © 2006 null. All Rights Reserved.