Class TransferInputStream
java.lang.Object
java.io.InputStream
io.clonecloudstore.common.standard.inputstream.AbstractCommonInputStream
io.clonecloudstore.common.standard.inputstream.TransferInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class io.clonecloudstore.common.standard.inputstream.AbstractCommonInputStream
done, inputStream, ioExceptionAtomicReference, outputStream, pipedInputStream, pipedOutputStream, sizeOutput, sizeRead
-
Constructor Summary
ConstructorsConstructorDescriptionTransferInputStream
(InputStream inputStream, AtomicReference<Exception> exceptionAtomicReference) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected OutputStream
getNewOutputStream
(Object extraArgument) void
Methods inherited from class io.clonecloudstore.common.standard.inputstream.AbstractCommonInputStream
available, close, markSupported, read, read, read, skip, toString, transferTo
Methods inherited from class java.io.InputStream
mark, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes
-
Constructor Details
-
TransferInputStream
public TransferInputStream(InputStream inputStream, AtomicReference<Exception> exceptionAtomicReference) throws IOException - Throws:
IOException
-
-
Method Details
-
getNewOutputStream
- Specified by:
getNewOutputStream
in classAbstractCommonInputStream
-
startCopyAsync
public void startCopyAsync() -
checkException
- Overrides:
checkException
in classAbstractCommonInputStream
- Throws:
IOException
-