Class AbstractCommonInputStream
java.lang.Object
java.io.InputStream
io.clonecloudstore.common.standard.inputstream.AbstractCommonInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
CipherInputStream,TransferInputStream,ZstdCompressInputStream
Base class for InputStream extension
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AtomicBooleanprotected final InputStreamprotected final AtomicReference<IOException> protected final OutputStreamprotected final PipedInputStreamprotected final PipedOutputStreamprotected longprotected long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCommonInputStream(InputStream inputStream, Object extraArgument) -
Method Summary
Modifier and TypeMethodDescriptionintprotected voidvoidclose()protected abstract OutputStreamgetNewOutputStream(Object extraArgument) booleanintread()intread(byte[] b) intread(byte[] b, int off, int len) longskip(long n) toString()longtransferTo(OutputStream out) Methods inherited from class java.io.InputStream
mark, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes
-
Field Details
-
inputStream
-
outputStream
-
pipedInputStream
-
pipedOutputStream
-
ioExceptionAtomicReference
-
sizeRead
protected long sizeRead -
sizeOutput
protected long sizeOutput -
done
-
-
Constructor Details
-
AbstractCommonInputStream
protected AbstractCommonInputStream(InputStream inputStream, Object extraArgument) throws IOException - Throws:
IOException
-
-
Method Details
-
getNewOutputStream
- Throws:
IOException
-
checkException
- Throws:
IOException
-
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
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
transferTo
- Overrides:
transferToin classInputStream- Throws:
IOException
-
toString
-