gnu.kawa.lispexpr
Class ReaderXmlElement
java.lang.Object
gnu.kawa.lispexpr.ReadTableEntry
gnu.kawa.lispexpr.ReaderXmlElement
public class ReaderXmlElement
- extends ReadTableEntry
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReaderXmlElement
public ReaderXmlElement()
read
public java.lang.Object read(Lexer in,
int ch,
int count)
throws java.io.IOException,
SyntaxException
- Overrides:
read
in class ReadTableEntry
- Throws:
java.io.IOException
SyntaxException
quote
public static Pair quote(java.lang.Object obj)
readQNameExpression
public static java.lang.Object readQNameExpression(LispReader reader,
int ch,
boolean forElement)
throws java.io.IOException,
SyntaxException
- Read either a QName literal or an enclosed QName-producing form.
If literal, returns a quoted symbol, and the source literal
in the non-empty token-buffer.
If non-literal, tokenBufferLength is set to 0.
- Throws:
java.io.IOException
SyntaxException
readElementConstructor
public static java.lang.Object readElementConstructor(LispReader reader,
int ch)
throws java.io.IOException,
SyntaxException
- Parse ElementConstructor.
Assume initial
'<'
has been processed,
and we're read the next character.
Reads through end of the end tag.
- Throws:
java.io.IOException
SyntaxException
readContent
public static Pair readContent(LispReader reader,
char delimiter,
Pair resultTail)
throws java.io.IOException,
SyntaxException
- Parse ElementContent (delimiter == '<') or AttributeContent (otherwise).
- Parameters:
delimiter
- is '<' if parsing ElementContent, is either '\'' or
'\"' if parsing AttributeContent depending on the starting quote
- Throws:
java.io.IOException
SyntaxException
namedEntity
public static void namedEntity(LispReader reader,
java.lang.String name)