org.jclarion.clarion.file
Class RingBufferedInputStreamClarionFile

java.lang.Object
  extended by org.jclarion.clarion.ClarionRandomAccessFile
      extended by org.jclarion.clarion.file.RingBufferedInputStreamClarionFile
Direct Known Subclasses:
URLFile

public abstract class RingBufferedInputStreamClarionFile
extends ClarionRandomAccessFile


Constructor Summary
RingBufferedInputStreamClarionFile()
           
 
Method Summary
 void close()
           
protected abstract  java.io.InputStream createStream()
           
 long length()
           
 long position()
           
 int read(byte[] target, int ofs, int len)
           
 void seek(long ofs)
           
 void write(byte[] arg0, int arg1, int arg2)
           
 
Methods inherited from class org.jclarion.clarion.ClarionRandomAccessFile
getCharFile, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RingBufferedInputStreamClarionFile

public RingBufferedInputStreamClarionFile()
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in class ClarionRandomAccessFile
Throws:
java.io.IOException

length

public long length()
            throws java.io.IOException
Specified by:
length in class ClarionRandomAccessFile
Throws:
java.io.IOException

read

public int read(byte[] target,
                int ofs,
                int len)
         throws java.io.IOException
Specified by:
read in class ClarionRandomAccessFile
Throws:
java.io.IOException

seek

public void seek(long ofs)
          throws java.io.IOException
Specified by:
seek in class ClarionRandomAccessFile
Throws:
java.io.IOException

write

public void write(byte[] arg0,
                  int arg1,
                  int arg2)
           throws java.io.IOException
Specified by:
write in class ClarionRandomAccessFile
Throws:
java.io.IOException

createStream

protected abstract java.io.InputStream createStream()
                                             throws java.io.IOException
Throws:
java.io.IOException

position

public long position()
              throws java.io.IOException
Specified by:
position in class ClarionRandomAccessFile
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.