Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for ByteArrayOutputStream (0.11 sec)

  1. 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)
  2. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

            try {
                Deflater deflater = new Deflater(COMPRESSION_LEVEL, false);
                deflater.setInput(data, offset, length);
                deflater.finish();
    
                ByteArrayOutputStream baos = new ByteArrayOutputStream(length);
                byte[] buffer = new byte[1024];
    
                while (!deflater.finished()) {
                    int compressedSize = deflater.deflate(buffer);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. 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)
  4. src/test/java/jcifs/smb1/util/HexdumpTest.java

        }
    
        @Test
        @DisplayName("Should perform hexdump with correct formatting")
        void testHexdump() {
            // Capture output
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            PrintStream ps = new PrintStream(baos);
    
            // Test with 16 bytes (one complete line)
            byte[] data1 = createTestData(16);
            Hexdump.hexdump(ps, data1, 0, 16);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/spnego/NegTokenInitTest.java

            ev.add(new DERTaggedObject(true, 0, new DERSequence(fields)));
    
            int outerTagNo = (outerTagNoOverride != null) ? outerTagNoOverride : 0;
    
            ByteArrayOutputStream collector = new ByteArrayOutputStream();
            ASN1OutputStream der = ASN1OutputStream.create(collector, ASN1Encoding.DER);
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  6. src/main/java/jcifs/spnego/NegTokenInit.java

                final ASN1EncodableVector ev = new ASN1EncodableVector();
                ev.add(SPNEGO_OID);
                ev.add(new DERTaggedObject(true, 0, new DERSequence(fields)));
                final ByteArrayOutputStream collector = new ByteArrayOutputStream();
                final ASN1OutputStream der = ASN1OutputStream.create(collector, ASN1Encoding.DER);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/ByteStreams.java

      public static ByteArrayDataOutput newDataOutput(ByteArrayOutputStream byteArrayOutputStream) {
        return new ByteArrayDataOutputStream(checkNotNull(byteArrayOutputStream));
      }
    
      @J2ktIncompatible
      private static final class ByteArrayDataOutputStream implements ByteArrayDataOutput {
    
        final DataOutput output;
        final ByteArrayOutputStream byteArrayOutputStream;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/TestLockingTest.java

        private PrintStream originalErr;
        private ByteArrayOutputStream outContent;
        private ByteArrayOutputStream errContent;
    
        @Mock
        private SmbFile mockSmbFile;
    
        @BeforeEach
        void setUpStreams() {
            originalOut = System.out;
            originalErr = System.err;
            outContent = new ByteArrayOutputStream();
            errContent = new ByteArrayOutputStream();
            System.setOut(new PrintStream(outContent));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java

            try {
                final PrintStream originalOutStream = System.out;
                final ByteArrayOutputStream outStream = new ByteArrayOutputStream();
                System.setOut(new PrintStream(outStream, true));
                final PrintStream originalErrStream = System.err;
                final ByteArrayOutputStream errStream = new ByteArrayOutputStream();
                System.setErr(new PrintStream(errStream, true));
                try {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 30.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals(I18N + I18N + I18N, Files.toString(temp, UTF_16LE));
      }
    
      public void testCopyToOutputStream() throws IOException {
        File i18nFile = getTestFile("i18n.txt");
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        Files.copy(i18nFile, out);
        assertEquals(I18N, out.toString("UTF-8"));
      }
    
      public void testCopyToAppendable() throws IOException {
        File i18nFile = getTestFile("i18n.txt");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
Back to top