Home
last modified time | relevance | path

Searched refs:byteArrayInputStream (Results 1 – 9 of 9) sorted by relevance

/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/
DChecksumCalculatingInputStreamTest.java44 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); in testSkipReturningZero() local
45 …checksumCalculatingInputStream = new ChecksumCalculatingInputStream(adler32, byteArrayInputStream); in testSkipReturningZero()
61 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); in testSkipReturningPositive() local
62 …checksumCalculatingInputStream = new ChecksumCalculatingInputStream(adler32, byteArrayInputStream); in testSkipReturningPositive()
77 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); in testReadTakingNoArguments() local
78 …checksumCalculatingInputStream = new ChecksumCalculatingInputStream(adler32, byteArrayInputStream); in testReadTakingNoArguments()
86 assertEquals(0, byteArrayInputStream.available()); in testReadTakingNoArguments()
98 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); in testReadTakingByteArray() local
99 …checksumCalculatingInputStream = new ChecksumCalculatingInputStream(adler32, byteArrayInputStream); in testReadTakingByteArray()
104 assertEquals(0, byteArrayInputStream.available()); in testReadTakingByteArray()
DChecksumVerifyingInputStreamTest.java44 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); in testReadTakingByteArrayThrowsIOException() local
45 …mVerifyingInputStream = new ChecksumVerifyingInputStream(adler32, byteArrayInputStream, (-1859L), … in testReadTakingByteArrayThrowsIOException()
57 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); in testReadTakingNoArgumentsThrowsIOException() local
58 …umVerifyingInputStream = new ChecksumVerifyingInputStream(cRC32_, byteArrayInputStream, (byte)1, (… in testReadTakingNoArgumentsThrowsIOException()
70 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArray); in testSkip() local
71 …umVerifyingInputStream = new ChecksumVerifyingInputStream(cRC32_, byteArrayInputStream, (byte)33, … in testSkip()
77 assertEquals(0, byteArrayInputStream.available()); in testSkip()
/external/cbor-java/src/test/java/co/nstant/in/cbor/decoder/
DSimpleValueDecoderTest.java27 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(encodedBytes); in shouldDecodeBoolean() local
28 List<DataItem> dataItems = new CborDecoder(byteArrayInputStream).decode(); in shouldDecodeBoolean()
/external/cbor-java/src/test/java/co/nstant/in/cbor/examples/
DExample14Test.java36 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream( in shouldDecode() local
39 CborDecoder decoder = new CborDecoder(byteArrayInputStream); in shouldDecode()
DExample12Test.java36 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream( in shouldDecode() local
39 CborDecoder decoder = new CborDecoder(byteArrayInputStream); in shouldDecode()
/external/guava/guava/src/com/google/common/io/
DByteStreams.java329 public static ByteArrayDataInput newDataInput(ByteArrayInputStream byteArrayInputStream) { in newDataInput() argument
330 return new ByteArrayDataInputStream(checkNotNull(byteArrayInputStream)); in newDataInput()
336 ByteArrayDataInputStream(ByteArrayInputStream byteArrayInputStream) { in ByteArrayDataInputStream() argument
337 this.input = new DataInputStream(byteArrayInputStream); in ByteArrayDataInputStream()
/external/guava/android/guava/src/com/google/common/io/
DByteStreams.java329 public static ByteArrayDataInput newDataInput(ByteArrayInputStream byteArrayInputStream) { in newDataInput() argument
330 return new ByteArrayDataInputStream(checkNotNull(byteArrayInputStream)); in newDataInput()
336 ByteArrayDataInputStream(ByteArrayInputStream byteArrayInputStream) { in ByteArrayDataInputStream() argument
337 this.input = new DataInputStream(byteArrayInputStream); in ByteArrayDataInputStream()
/external/aws-sdk-java-v2/services-custom/s3-transfer-manager/src/main/java/software/amazon/awssdk/transfer/s3/model/
DResumableFileDownload.java187 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bytes); in serializeToOutputStream() local
188 IoUtils.copy(byteArrayInputStream, outputStream); in serializeToOutputStream()
DResumableFileUpload.java192 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bytes); in serializeToOutputStream() local
193 IoUtils.copy(byteArrayInputStream, outputStream); in serializeToOutputStream()