|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.util.text.TransferableText
public final class TransferableText
Implementation of a simple class that implements a serializable text holder that may locally use a stream for storing its value. If the class is serialized, the stream is transformed to a String to support serialization.
| Constructor Summary | |
|---|---|
TransferableText(java.io.Reader reader)
Public constructor |
|
TransferableText(java.io.Reader reader,
java.lang.String type)
Public constructor |
|
TransferableText(java.lang.String string)
Public constructor |
|
TransferableText(java.lang.String string,
java.lang.String type)
Public constructor |
|
| Method Summary | |
|---|---|
java.io.Reader |
getReader()
Get the text as a Reader value |
java.lang.String |
getString()
Get the text as a String value |
java.lang.String |
getType()
Return the type of the text |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransferableText(java.lang.String string)
string - A not-null not-empty String instancetype - A valid MIME type value
public TransferableText(java.lang.String string,
java.lang.String type)
string - A not-null not-empty String instancepublic TransferableText(java.io.Reader reader)
reader - A not-null open java.io.Reader instance
public TransferableText(java.io.Reader reader,
java.lang.String type)
reader - A not-null open java.io.Reader instancetype - A valid MIME type value| Method Detail |
|---|
public final java.lang.String getType()
public final java.lang.String getString()
throws java.io.IOException
java.io.IOExceptionpublic final java.io.Reader getReader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||