Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 79 for ByteArrayOutputStream (0.06 sec)

  1. src/main/java/org/codelibs/core/io/SerializeUtil.java

         * @return the byte array of the object
         */
        public static byte[] fromObjectToBinary(final Object obj) {
            assertArgumentNotNull("obj", obj);
    
            try {
                final ByteArrayOutputStream baos = new ByteArrayOutputStream(BYTE_ARRAY_SIZE);
                final ObjectOutputStream oos = new ObjectOutputStream(baos);
                try {
                    oos.writeObject(obj);
                } finally {
                    oos.close();
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComNegotiate.java

            return 0;
        }
    
        @Override
        protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
            final ByteArrayOutputStream bos = new ByteArrayOutputStream();
    
            for (final String dialect : this.dialects) {
                bos.write(0x02);
                try {
                    bos.write(Strings.getASCIIBytes(dialect));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  3. 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)
  4. guava-tests/test/com/google/common/collect/MultimapBuilderTest.java

        assertEquals(object.getClass(), copy.getClass());
      }
    
      @GwtIncompatible
      @J2ktIncompatible
        private static Object reserialize(Object object) throws Exception {
        ByteArrayOutputStream bytes = new ByteArrayOutputStream();
        new ObjectOutputStream(bytes).writeObject(object);
        return new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray())).readObject();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/curl/CurlResponse.java

         */
        public String getContentAsString() {
            final byte[] bytes = new byte[4096];
            try (BufferedInputStream bis = new BufferedInputStream(getContentAsStream());
                    ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
                int length = bis.read(bytes);
                while (length != -1) {
                    if (length != 0) {
                        baos.write(bytes, 0, length);
                    }
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  6. 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)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/backup/ApiAdminBackupAction.java

                if ("system.properties".equals(id)) {
                    return asStream(id).contentTypeOctetStream().stream(out -> {
                        try (final ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
                            ComponentUtil.getSystemProperties().store(baos, id);
                            try (final InputStream in = new ByteArrayInputStream(baos.toByteArray())) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  8. android/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)
  9. src/main/java/jcifs/spnego/NegTokenTarg.java

            this.mechanism = mechanism;
        }
    
        @Override
        public byte[] toByteArray() {
            try {
                final ByteArrayOutputStream collector = new ByteArrayOutputStream();
                final ASN1OutputStream der = ASN1OutputStream.create(collector, ASN1Encoding.DER);
                final ASN1EncodableVector fields = new ASN1EncodableVector();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/crawler/serializer/DataSerializer.java

         */
        protected byte[] serializeWithKryo(final Object obj) {
            final Kryo kryo = kryoThreadLocal.get();
            try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); final Output output = new Output(baos)) {
                kryo.writeClassAndObject(output, obj);
                output.flush();
                return baos.toByteArray();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.1K bytes
    - Viewed (3)
Back to top