multivalent.std.adaptor

Class ML

public abstract class ML extends MediaAdaptorReader

Abstract superclass for XML, HTML, (winks in direction of SGML), ...

Version: $Revision: 1.7 $ $Date: 2003/06/02 05:39:52 $

Field Summary
protected Map<String,String>entity_
protected interrcnt
protected PushbackReaderir_
protected booleanispace
protected booleankeepComments
protected booleankeepWhitespace
Constructor Summary
ML()
Subclasses should set entity references table.
Method Summary
protected voideatComment()
Reads past SGML/HTML/XML comments: <!
protected voideatSpace()
protected StringgetEntity(String key)
protected ESISNodegetTag()
protected ESISNodegetTag(char ch)
ESISNode returned is reused, so clients should extract all they want before calling again.
static booleanpairsWith(ESISNode t1, ESISNode t2)
protected charreadChar()
protected StringreadString()
protected StringreadString(char open, char close)
protected StringreadString(char open, char close, String altend)
protected StringreadString(char open, char close, String altend, char escchar)
protected StringreadStringInternal(String stop, char escchar)
protected voidsetEntity(String key, String val)
voidsetReader(Reader r)

Field Detail

entity_

protected Map<String,String> entity_

errcnt

protected int errcnt

ir_

protected PushbackReader ir_

ispace

protected boolean ispace

keepComments

protected boolean keepComments

keepWhitespace

protected boolean keepWhitespace

Constructor Detail

ML

public ML()
Subclasses should set entity references table.

Method Detail

eatComment

protected void eatComment()
Reads past SGML/HTML/XML comments: <!-- .. -->.

eatSpace

protected void eatSpace()

getEntity

protected String getEntity(String key)

getTag

protected ESISNode getTag()

getTag

protected ESISNode getTag(char ch)
ESISNode returned is reused, so clients should extract all they want before calling again. Attributes without values (e.g., lone BORDER in HTML, as opposed to BORDER=5) are given a value that is the same is the name (e.g., long BORDER is that same as BORDER=BORDER); when saved, the attribute returned to the short form. In other words, they're expanded on read, shortened on write, and getAttr()!=null can test for existence.

pairsWith

public static boolean pairsWith(ESISNode t1, ESISNode t2)

readChar

protected char readChar()

readString

protected String readString()

readString

protected String readString(char open, char close)

readString

protected String readString(char open, char close, String altend)

readString

protected String readString(char open, char close, String altend, char escchar)

readStringInternal

protected String readStringInternal(String stop, char escchar)

setEntity

protected void setEntity(String key, String val)

setReader

public void setReader(Reader r)