Package gnu.lists
Class UnescapedData
- java.lang.Object
-
- gnu.lists.UnescapedData
-
- All Implemented Interfaces:
Externalizable
,Serializable
,CharSequence
public class UnescapedData extends Object implements CharSequence, Externalizable
Used for text that is supposed to be written out verbatim. For example, if the output format is XML, can be used to write a literal'<'
as a plain"<"
, instead of being escaped as"<"
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnescapedData()
UnescapedData(String data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
charAt(int index)
boolean
equals(Object other)
String
getData()
int
hashCode()
int
length()
void
readExternal(ObjectInput in)
CharSequence
subSequence(int start, int end)
String
toString()
void
writeExternal(ObjectOutput out)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Constructor Detail
-
UnescapedData
public UnescapedData()
-
UnescapedData
public UnescapedData(String data)
-
-
Method Detail
-
getData
public final String getData()
-
toString
public final String toString()
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
length
public int length()
- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
-
subSequence
public CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfaceCharSequence
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
-