|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ten60.netkernel.urii.representation.SimpleRepresentationImpl
com.ten60.netkernel.module.accessor.ModuleResourceRepresentation
The representation returned by the module resource accessor. It is based on SimpleRepresentationImpl which means the aspect and representation are rolled into one object.
Field Summary |
Fields inherited from class com.ten60.netkernel.urii.representation.SimpleRepresentationImpl |
mMeta |
Constructor Summary | |
ModuleResourceRepresentation(String aPath,
ModuleDefinition aModule,
Container aContainer,
long aExpiryOffset)
Creates a new instance of ModuleResourceRepresentation |
Method Summary | |
int |
getContentLength()
return the length of the resource |
String |
getEncoding()
returns a guess at the encoding if the resource is text |
InputStream |
getInputStream()
get an input stream for the resource |
void |
write(OutputStream aStream)
write the resource to the given output stream |
Methods inherited from class com.ten60.netkernel.urii.representation.SimpleRepresentationImpl |
getAspect, getAspects, getMeta, hasAspect |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModuleResourceRepresentation(String aPath, ModuleDefinition aModule, Container aContainer, long aExpiryOffset) throws IOException
Method Detail |
public int getContentLength()
getContentLength
in interface IAspectReadableBinaryStream
public void write(OutputStream aStream) throws IOException
write
in interface IAspectBinaryStream
aStream
- the output stream
IOException
- thrown if we fail to writepublic InputStream getInputStream() throws IOException
getInputStream
in interface IAspectReadableBinaryStream
IOException
public String getEncoding()
getEncoding
in interface IAspectBinaryStream
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |