Package hudson.remoting
Class RemoteInputStream
java.lang.Object
java.io.InputStream
hudson.remoting.RemoteInputStream
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable,SerializableOnlyOverRemoting
Wraps
InputStream so that it can be sent over the remoting channel.
Note that this class by itself does not perform buffering.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRemoteInputStream(InputStream core) Deprecated.RemoteInputStream(InputStream core, boolean autoUnexport) Deprecated.as of 2.35 UseRemoteInputStream(InputStream, Flag, Flag)withRemoteInputStream.Flag.MANUAL_UNEXPORT.RemoteInputStream(InputStream core, Set<RemoteInputStream.Flag> flags) -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jenkinsci.remoting.SerializableOnlyOverRemoting
getChannelForSerialization
-
Constructor Details
-
RemoteInputStream
Deprecated.as of 2.35 UseRemoteInputStream(InputStream, Flag)and specify eitherRemoteInputStream.Flag.GREEDYorRemoteInputStream.Flag.NOT_GREEDY.Short forRemoteInputStream(core,true). -
RemoteInputStream
Deprecated.as of 2.35 UseRemoteInputStream(InputStream, Flag, Flag)withRemoteInputStream.Flag.MANUAL_UNEXPORT. Also specify eitherRemoteInputStream.Flag.GREEDYorRemoteInputStream.Flag.NOT_GREEDY.- Parameters:
autoUnexport- If true, theInputStreamwill be automatically unexported when the callable that took it with returns. If false, it'll not unexported until the close method is called.
-
RemoteInputStream
- Since:
- 2.35
-
RemoteInputStream
- Since:
- 2.35
-
RemoteInputStream
- Since:
- 2.35
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
RemoteInputStream(InputStream, Flag)and specify eitherRemoteInputStream.Flag.GREEDYorRemoteInputStream.Flag.NOT_GREEDY.