MetaTF.Runtime
Class AsciiReader
java.lang.Object
|
+--MetaTF.Runtime.AsciiReader
- All Implemented Interfaces:
- LowLevelReader
- public class AsciiReader
- extends java.lang.Object
- implements LowLevelReader
AsciiReader implements LowLevelReader
- Version:
- rel-1-2 ($Revision: 1.1 $, $Date: 2000/12/15 16:35:32 $),
- Author:
- Richard Jones
Constructor Summary |
AsciiReader(java.io.InputStream di)
|
Method Summary |
static void |
main(java.lang.String[] args)
|
java.lang.String |
readAny()
Read a special
read without encoding |
java.lang.String |
readln()
Read to end of line without encoding. |
long |
readNum()
Read a number |
java.lang.String |
readString()
Read a string
Handles escape characters etc. |
int |
readTag()
Read a tag |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsciiReader
public AsciiReader(java.io.InputStream di)
readTag
public int readTag()
throws BadRecordException,
java.io.IOException
- Description copied from interface:
LowLevelReader
- Read a tag
- Specified by:
readTag
in interface LowLevelReader
- Following copied from interface:
MetaTF.Runtime.LowLevelReader
- Throws:
BadRecordException
- IF the record is malformedjava.io.IOException
- IF the read fails
readNum
public long readNum()
throws BadRecordException,
java.io.IOException
- Description copied from interface:
LowLevelReader
- Read a number
- Specified by:
readNum
in interface LowLevelReader
- Following copied from interface:
MetaTF.Runtime.LowLevelReader
- Throws:
BadRecordException
- IF the record is malformedjava.io.IOException
- IF the read fails
readAny
public java.lang.String readAny()
throws BadRecordException,
java.io.IOException
- Description copied from interface:
LowLevelReader
- Read a special
read without encoding
- Specified by:
readAny
in interface LowLevelReader
- Following copied from interface:
MetaTF.Runtime.LowLevelReader
- Throws:
BadRecordException
- IF the record is malformedjava.io.IOException
- IF the read fails
readString
public java.lang.String readString()
throws BadRecordException,
java.io.IOException
- Description copied from interface:
LowLevelReader
- Read a string
Handles escape characters etc.
- Specified by:
readString
in interface LowLevelReader
- Following copied from interface:
MetaTF.Runtime.LowLevelReader
- Throws:
BadRecordException
- IF the record is malformedjava.io.IOException
- IF the read fails
readln
public java.lang.String readln()
throws BadRecordException,
java.io.IOException
- Description copied from interface:
LowLevelReader
- Read to end of line without encoding.
Used for comments
- Specified by:
readln
in interface LowLevelReader
- Following copied from interface:
MetaTF.Runtime.LowLevelReader
- Throws:
BadRecordException
- IF the record is malformedjava.io.IOException
- IF the read fails
main
public static void main(java.lang.String[] args)
Copyright © 2001 - Richard Jones MetaTF