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 charcharAt(int index)booleanequals(Object other)StringgetData()inthashCode()intlength()voidreadExternal(ObjectInput in)CharSequencesubSequence(int start, int end)StringtoString()voidwriteExternal(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:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
length
public int length()
- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAtin interfaceCharSequence
-
subSequence
public CharSequence subSequence(int start, int end)
- Specified by:
subSequencein interfaceCharSequence
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-