javax.rad.io
Interface IFileHandle

All Known Implementing Classes:
DirectoryHandle, FileHandle, RemoteFileHandle

public interface IFileHandle

The IFileHandle is a storage independent file handle.


Method Summary
 String getFileName()
          Gets the file name of this file handle.
 InputStream getInputStream()
          Gets the InputStream of this file handle.
 long getLength()
          Gets the length of the InputStream in bytes
 

Method Detail

getFileName

String getFileName()
Gets the file name of this file handle.

Returns:
the file name of this file handle.

getInputStream

InputStream getInputStream()
                           throws IOException
Gets the InputStream of this file handle.

Returns:
the InputStream of this file handle.
Throws:
IOException - if an exception occurs.

getLength

long getLength()
               throws IOException
Gets the length of the InputStream in bytes. -1 is returned if getInputStream is null.

Returns:
the length of the InputStream in bytes.
Throws:
IOException - if an exception occurs.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.