Class ByteUtils.InputStreamByteSupplier
- java.lang.Object
-
- org.apache.commons.compress.utils.ByteUtils.InputStreamByteSupplier
-
- All Implemented Interfaces:
ByteUtils.ByteSupplier
- Enclosing class:
- ByteUtils
@Deprecated public static class ByteUtils.InputStreamByteSupplier extends java.lang.Object implements ByteUtils.ByteSupplier
Deprecated.UnusedByteUtils.ByteSupplierbased onInputStream.- Since:
- 1.14
-
-
Constructor Summary
Constructors Constructor Description InputStreamByteSupplier(java.io.InputStream is)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetAsByte()Deprecated.The contract is similar toInputStream.read(), return the byte as an unsigned int, -1 if there are no more bytes.
-
-
-
Method Detail
-
getAsByte
public int getAsByte() throws java.io.IOExceptionDeprecated.Description copied from interface:ByteUtils.ByteSupplierThe contract is similar toInputStream.read(), return the byte as an unsigned int, -1 if there are no more bytes.- Specified by:
getAsBytein interfaceByteUtils.ByteSupplier- Returns:
- the supplied byte or -1 if there are no more bytes
- Throws:
java.io.IOException- if supplying fails
-
-