|
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
public final class 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(java.lang.String aPath,
ModuleDefinition aModule,
Container aContainer,
long aExpiryOffset)
Creates a new instance of ModuleResourceRepresentation |
|
| Method Summary | |
|---|---|
int |
getContentLength()
return the length of the resource |
java.lang.String |
getEncoding()
returns a guess at the encoding if the resource is text |
java.io.InputStream |
getInputStream()
get an input stream for the resource |
void |
write(java.io.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(java.lang.String aPath,
ModuleDefinition aModule,
Container aContainer,
long aExpiryOffset)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public int getContentLength()
getContentLength in interface IAspectReadableBinaryStream
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 write
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface IAspectReadableBinaryStreamjava.io.IOExceptionpublic java.lang.String getEncoding()
getEncoding in interface IAspectBinaryStream
|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||