|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ten60.netkernel.urii.aspect.StringAspect
Implementation of IAspectString and IAspectReadableBinaryStream that holds a java.lang.String
Constructor Summary | |
StringAspect(String aString)
Creates a new instance of StringAspect |
|
StringAspect(String aString,
String aEncoding)
Creates a new instance of StringAspect |
Method Summary | |
static IURRepresentation |
create(IURMeta aMeta,
String aString)
Deprecated. |
int |
getContentLength()
Return the length of the stream |
String |
getEncoding()
|
InputStream |
getInputStream()
Return an input stream to read the data |
Reader |
getReader()
Return reader over string |
String |
getString()
Return the string |
void |
write(OutputStream aStream)
Write state to OutputStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringAspect(String aString)
aString
- the value for the aspectpublic StringAspect(String aString, String aEncoding)
aString
- the value for the aspectaEncoding
- the prefered character encoding for writingMethod Detail |
public String getString()
getString
in interface IAspectString
public void write(OutputStream aStream) throws IOException
write
in interface IAspectBinaryStream
aStream
- the output stream
IOException
- thrown if we fail to writepublic int getContentLength()
getContentLength
in interface IAspectReadableBinaryStream
public InputStream getInputStream() throws IOException
getInputStream
in interface IAspectReadableBinaryStream
IOException
public static IURRepresentation create(IURMeta aMeta, String aString)
aMeta
- the meta for the representationaString
- the value of the string aspectpublic String getEncoding()
getEncoding
in interface IAspectBinaryStream
public Reader getReader()
IAspectReader
getReader
in interface IAspectReader
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |