NetKernel APIs


com.ten60.netkernel.urii.aspect
Interface IAspectReadableBinaryStream

All Superinterfaces:
IAspectBinaryStream, IURAspect
All Known Implementing Classes:
ByteArrayAspect, FileResourceRepresentation, ModuleResourceRepresentation, ReadableURLAspect, StringAspect

public interface IAspectReadableBinaryStream
extends IAspectBinaryStream

Interface for a representation holding a binary stream that can be read as input stream


Method Summary
 int getContentLength()
          Return the length of the stream, -1 means unknown length
 InputStream getInputStream()
          Return an input stream to read the data
 
Methods inherited from interface com.ten60.netkernel.urii.aspect.IAspectBinaryStream
getEncoding, write
 

Method Detail

getContentLength

public int getContentLength()
Return the length of the stream, -1 means unknown length


getInputStream

public InputStream getInputStream()
                           throws IOException
Return an input stream to read the data

Throws:
IOException

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.