|
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
public class StringAspect
Implementation of IAspectString and IAspectReadableBinaryStream that holds a java.lang.String
| Constructor Summary | |
|---|---|
StringAspect(java.lang.String aString)
Creates a new instance of StringAspect |
|
StringAspect(java.lang.String aString,
java.lang.String aEncoding)
Creates a new instance of StringAspect |
|
| Method Summary | |
|---|---|
static IURRepresentation |
create(IURMeta aMeta,
java.lang.String aString)
Deprecated. |
int |
getContentLength()
Return the length of the stream |
java.lang.String |
getEncoding()
|
java.io.InputStream |
getInputStream()
Return an input stream to read the data |
java.io.Reader |
getReader()
Return reader over string |
java.lang.String |
getString()
Return the string |
void |
write(java.io.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(java.lang.String aString)
aString - the value for the aspect
public StringAspect(java.lang.String aString,
java.lang.String aEncoding)
aString - the value for the aspectaEncoding - the prefered character encoding for writing| Method Detail |
|---|
public java.lang.String getString()
getString in interface IAspectString
public void write(java.io.OutputStream aStream)
throws java.io.IOException
write in interface IAspectBinaryStreamaStream - the output stream
java.io.IOException - thrown if we fail to writepublic int getContentLength()
getContentLength in interface IAspectReadableBinaryStream
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface IAspectReadableBinaryStreamjava.io.IOException
public static IURRepresentation create(IURMeta aMeta,
java.lang.String aString)
aMeta - the meta for the representationaString - the value of the string aspectpublic java.lang.String getEncoding()
getEncoding in interface IAspectBinaryStreampublic java.io.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 | |||||||||