org.jclarion.clarion.file
Class CharClarionFile

java.lang.Object
  extended by org.jclarion.clarion.ClarionRandomAccessCharFile
      extended by org.jclarion.clarion.file.CharClarionFile

public class CharClarionFile
extends ClarionRandomAccessCharFile

Wrap random access file as a char array Seek positions are all based on BYTE position

Author:
barney

Constructor Summary
CharClarionFile(ClarionRandomAccessFile file)
           
 
Method Summary
 void close()
           
 java.lang.String getName()
           
 long length()
           
 long position()
           
 int read()
           
 void resetRead()
           
 void seek(long l)
           
 void write(char[] bytes, int ofs, int len)
           
 
Methods inherited from class org.jclarion.clarion.ClarionRandomAccessCharFile
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharClarionFile

public CharClarionFile(ClarionRandomAccessFile file)
Method Detail

close

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

getName

public java.lang.String getName()
Specified by:
getName in class ClarionRandomAccessCharFile

length

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

read

public int read()
         throws java.io.IOException
Specified by:
read in class ClarionRandomAccessCharFile
Throws:
java.io.IOException

seek

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

write

public void write(char[] bytes,
                  int ofs,
                  int len)
           throws java.io.IOException
Specified by:
write in class ClarionRandomAccessCharFile
Throws:
java.io.IOException

position

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

resetRead

public void resetRead()


Copyright © 2010. All Rights Reserved.