- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for ByteArrayOutputStream (0.09 sec)
-
src/test/java/jcifs/pac/PacSignatureTest.java
* @throws PACDecodingException if the PAC is malformed */ @Test void testConstructorKerbChecksumHmacMd5() throws IOException, PACDecodingException { // Prepare data ByteArrayOutputStream baos = new ByteArrayOutputStream(); writeLittleEndianInt(baos, PacSignature.KERB_CHECKSUM_HMAC_MD5); byte[] checksum = new byte[16]; for (int i = 0; i < checksum.length; i++) { checksum[i] = (byte) i;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacTest.java
} private void writeLittleEndianInt(ByteArrayOutputStream baos, int value) { baos.write(value & 0xFF); baos.write((value >> 8) & 0xFF); baos.write((value >> 16) & 0xFF); baos.write((value >> 24) & 0xFF); } private void writeLittleEndianLong(ByteArrayOutputStream baos, long value) { for (int i = 0; i < 8; i++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java
DictionaryExpiredException exception = new DictionaryExpiredException(); try { // Redirect to ByteArrayOutputStream to avoid console output ByteArrayOutputStream baos = new ByteArrayOutputStream(); java.io.PrintStream ps = new java.io.PrintStream(baos); exception.printStackTrace(ps); String output = baos.toString();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/Platform.java
@NullMarked final class Platform { /** Serializes and deserializes the specified object. */ @SuppressWarnings("unchecked") static <T> T reserialize(T object) { checkNotNull(object); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); try { ObjectOutputStream out = new ObjectOutputStream(bytes); out.writeObject(object); ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 1.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java
} @Test void testDfsInfo1_EncodeDecode() throws NdrException { netdfs.DfsInfo1 info1 = new netdfs.DfsInfo1(); info1.entry_path = "test_path"; ByteArrayOutputStream bos = new ByteArrayOutputStream(); // Create buffer for encoding - initially allocate some space byte[] encodeBuffer = new byte[1024]; NdrBuffer dst = new NdrBuffer(encodeBuffer, 0); info1.encode(dst);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.9K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosTokenTest.java
private byte[] createGssApiWrapper(ASN1ObjectIdentifier oid, byte[] data) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); // Build the inner content ByteArrayOutputStream innerContent = new ByteArrayOutputStream(); innerContent.write(oid.getEncoded()); innerContent.write(data); byte[] content = innerContent.toByteArray();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/LogStreamTest.java
} @Test void testPrintStreamDelegation() { // Test that LogStream properly delegates to underlying PrintStream // Use a real PrintStream with ByteArrayOutputStream to test delegation ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream realStream = new PrintStream(baos); LogStream logStream = new LogStream(realStream); // Test delegation of various methods
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/compression/DefaultCompressionService.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
// Given SpnegoException original = new SpnegoException("serialize me", new IllegalArgumentException("iaex")); // When byte[] bytes; try (ByteArrayOutputStream bout = new ByteArrayOutputStream(); ObjectOutputStream oout = new ObjectOutputStream(bout)) { oout.writeObject(original); oout.flush(); bytes = bout.toByteArray(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
} @Test @DisplayName("Test date conversion from FILETIME") void testFiletimeConversion() throws Exception { // Test the FILETIME conversion logic ByteArrayOutputStream baos = new ByteArrayOutputStream(); DataOutputStream dos = new DataOutputStream(baos); // Write a known FILETIME value // 116444736000000000L represents January 1, 1970 (Unix epoch) in Windows FILETIME
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0)