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, transferTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jenkinsci.remoting.SerializableOnlyOverRemoting
getChannelForSerialization
-
Constructor Details
-
RemoteInputStream
Deprecated.as of 2.35 UseRemoteInputStream(InputStream, Flag)
and specify eitherRemoteInputStream.Flag.GREEDY
orRemoteInputStream.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.GREEDY
orRemoteInputStream.Flag.NOT_GREEDY
.- Parameters:
autoUnexport
- If true, theInputStream
will 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:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
RemoteInputStream(InputStream, Flag)
and specify eitherRemoteInputStream.Flag.GREEDY
orRemoteInputStream.Flag.NOT_GREEDY
.