Package eu.bandm.tools.d2d2.base
Class Text2Udom.PrematureEndOfFile
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
eu.bandm.tools.d2d2.base.Text2Udom.PrematureEndOfFile
- All Implemented Interfaces:
Serializable
- Enclosing class:
Text2Udom
Class to signal an attempt to read beyond the limit of the input data to the
upper processing loop.
Explicit end of input sources is modelled by the recognizing the pseudo-token
Chars.STRING_TAGNAME_eof.
Premature end of file = physical end of file is modelled as follows:
-
MemString.CHAR_EOTEXTis defined to 0x0000. - MemScanner delivers lastTokenType()==MemScanner.TokenType.eoinput;
- This throws PrematureEndOfFile, iff reached whenever parsing anything! This is correct, because in a syntactially well-formed file the explicit "#eof" would have been parsed before.
- See Also:
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString