org.jclarion.clarion.file
Class CharClarionFile
java.lang.Object
org.jclarion.clarion.ClarionRandomAccessCharFile
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CharClarionFile
public CharClarionFile(ClarionRandomAccessFile file)
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.