Class GassInputStream
java.lang.Object
java.io.InputStream
org.globus.io.streams.GlobusInputStream
org.globus.io.streams.HTTPInputStream
org.globus.io.streams.GassInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Field Summary
FieldsFields inherited from class HTTPInputStream
input, size, socket -
Constructor Summary
ConstructorsConstructorDescriptionGassInputStream(String host, int port, String file) Opens Gass input stream in secure mode with default user credentials.GassInputStream(GSSCredential cred, Authorization auth, String host, int port, String file) Opens Gass input stream in secure mode with specified user credentials. -
Method Summary
Methods inherited from class HTTPInputStream
abort, available, close, get, getSize, read, read, readMethods inherited from class InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
cred
-
auth
-
-
Constructor Details
-
GassInputStream
public GassInputStream(String host, int port, String file) throws GassException, GSSException, IOException Opens Gass input stream in secure mode with default user credentials.- Parameters:
host- host name of the gass serverport- port number of the gass serverfile- file to retrieve from the server- Throws:
GassExceptionGSSExceptionIOException
-
GassInputStream
public GassInputStream(GSSCredential cred, Authorization auth, String host, int port, String file) throws GassException, GSSException, IOException Opens Gass input stream in secure mode with specified user credentials.- Parameters:
cred- user credentials to usehost- host name of the gass serverport- port number of the gass serverfile- file to retrieve from the server- Throws:
GassExceptionGSSExceptionIOException
-
-
Method Details
-
openSocket
- Overrides:
openSocketin classHTTPInputStream- Throws:
IOException
-