Searched refs:byteArrayOutputStream (Results 1 – 9 of 9) sorted by relevance
246 byteArrayOutputStream.write(DEFAULT_FORMAT_VERSION_BYTES); in testBinaryString_serializeValidCompoundFormula_notConnector()247 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidCompoundFormula_notConnector()296 byteArrayOutputStream.write(DEFAULT_FORMAT_VERSION_BYTES); in testBinaryString_serializeValidCompoundFormula_andConnector()297 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidCompoundFormula_andConnector()346 byteArrayOutputStream.write(DEFAULT_FORMAT_VERSION_BYTES); in testBinaryString_serializeValidCompoundFormula_orConnector()347 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidCompoundFormula_orConnector()379 byteArrayOutputStream.write(DEFAULT_FORMAT_VERSION_BYTES); in testBinaryString_serializeValidAtomicFormula_stringValue()380 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidAtomicFormula_stringValue()414 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidAtomicFormula_hashedValue()443 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidAtomicFormula_integerValue()[all …]
299 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in toBytes() local300 ProtoOutputStream protoOutputStream = new ProtoOutputStream(byteArrayOutputStream); in toBytes()314 closeQuietly(byteArrayOutputStream); in toBytes()315 return byteArrayOutputStream.toByteArray(); in toBytes()
154 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in saveAndFinish() local156 exif.writeExif(data, byteArrayOutputStream); in saveAndFinish()160 byte[] dataWithExif = byteArrayOutputStream.toByteArray(); in saveAndFinish()
137 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in readCommand() local141 byteArrayOutputStream.write(b); in readCommand()144 byte[] bytes = byteArrayOutputStream.toByteArray(); in readCommand()
275 try (ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream()) { in writeBundleToFile() argument276 persistableBundle.writeToStream(byteArrayOutputStream); in writeBundleToFile()277 Files.write(file.toPath(), byteArrayOutputStream.toByteArray()); in writeBundleToFile()
234 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in roundTrip() local235 KeyChainSnapshotSerializer.serialize(snapshot, byteArrayOutputStream); in roundTrip()237 new ByteArrayInputStream(byteArrayOutputStream.toByteArray())); in roundTrip()
314 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in toByteArray() local315 ObjectOutputStream stream = new ObjectOutputStream(byteArrayOutputStream); in toByteArray()319 return byteArrayOutputStream.toByteArray(); in toByteArray()
302 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in computePackageStateHash() local303 DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream); in computePackageStateHash()334 return PackageUtils.computeSha256Digest(byteArrayOutputStream.toByteArray()); in computePackageStateHash()
555 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in onStart() local556 PrintStream writer = new PrintStream(byteArrayOutputStream); in onStart()576 byteArrayOutputStream.toString())); in onStart()