org.inria.ns.reflex.modules.io.remote
Interface ContentManager


public interface ContentManager

Manage the content of a remote file.

Author:
Philippe Poulard

Method Summary
 String[] getChildren()
          Return the child files.
 String getEncoding()
          Return the encoding.
 InputStream getInputStream()
          Return the input stream.
 String getMimeType()
          Return the MIME type.
 OutputStream getOutputStream()
          Return the output stream.
 long getSize()
          Return the size.
 FileType getType()
          Return the type.
 

Method Detail

getType

FileType getType()
Return the type.

Returns:
The type.

getSize

long getSize()
Return the size.

Returns:
The size, or -1.

getChildren

String[] getChildren()
Return the child files.

Returns:
The children or an empty array.

getInputStream

InputStream getInputStream()
Return the input stream.

Returns:
The input stream or null.

getOutputStream

OutputStream getOutputStream()
Return the output stream.

Returns:
The output stream or null.

getMimeType

String getMimeType()
Return the MIME type.

Returns:
The MIME type or null.

getEncoding

String getEncoding()
Return the encoding.

Returns:
The encoding or null.