|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
edu.sdsc.grid.io.GeneralFileInputStream
edu.sdsc.grid.io.RemoteFileInputStream
public abstract class RemoteFileInputStream
A GeneralFileInputStream obtains input bytes from a file in a file system. What files are available depends on the host environment.
GeneralFileInputStream is meant for reading streams of raw bytes such as image data.
The original intention for this class was to subclass java.io.FileInputStream. But that is not currently the case.
| Field Summary |
|---|
| Fields inherited from class edu.sdsc.grid.io.GeneralFileInputStream |
|---|
fd |
| Constructor Summary | |
|---|---|
RemoteFileInputStream(GeneralFile file)
Creates a RemoteFileInputStream by
opening a connection to an actual file,
the file named by the File
object file in the file system. |
|
RemoteFileInputStream(GeneralFileSystem fileSystem,
java.lang.String name)
Creates a RemoteFileInputStream by
opening a connection to an actual file,
the file named by the path name name
in the file system. |
|
| Method Summary |
|---|
| Methods inherited from class edu.sdsc.grid.io.GeneralFileInputStream |
|---|
available, close, finalize, open, read, read, read, skip |
| Methods inherited from class java.io.InputStream |
|---|
mark, markSupported, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteFileInputStream(GeneralFileSystem fileSystem,
java.lang.String name)
throws java.io.IOException
RemoteFileInputStream by
opening a connection to an actual file,
the file named by the path name name
in the file system. A new FileDescriptor
object is created to represent this file
connection.
First, if there is a security
manager, its checkRead method
is called with the name argument
as its argument.
If the named file does not exist, is a directory rather than a regular
file, or for some other reason cannot be opened for reading then a
IOException is thrown.
name - the system-dependent file name.
java.io.IOException - if the file does not exist,
is a directory rather than a regular file,
or for some other reason cannot be opened for
reading.
public RemoteFileInputStream(GeneralFile file)
throws java.io.IOException
RemoteFileInputStream by
opening a connection to an actual file,
the file named by the File
object file in the file system.
A new FileDescriptor object
is created to represent this file connection.
First, if there is a security manager,
its checkRead method is called
with the path represented by the file
argument as its argument.
If the named file does not exist, is a directory rather than a regular
file, or for some other reason cannot be opened for reading then a
IOException is thrown.
file - the file to be opened for reading.
java.io.IOException - if the file does not exist,
is a directory rather than a regular file,
or for some other reason cannot be opened for
reading.File.getPath()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||