Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 129 for toByteArray (0.25 sec)

  1. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            oos.writeObject(exception);
            oos.close();
    
            // And deserialize
            java.io.ByteArrayInputStream bais = new java.io.ByteArrayInputStream(baos.toByteArray());
            java.io.ObjectInputStream ois = new java.io.ObjectInputStream(bais);
            SmbOperationException deserialized = (SmbOperationException) ois.readObject();
            ois.close();
    
            // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/MultipartBodyTest.kt

                    "file; filename=\"file2.gif\"",
                    "Content-Transfer-Encoding",
                    "binary",
                  ),
                  "... contents of file2.gif ..."
                    .toByteArray(StandardCharsets.UTF_8)
                    .toRequestBody("image/gif".toMediaType()),
                ).build(),
            ).build()
        assertThat(body.boundary).isEqualTo("AaB03x")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  3. compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java

            new MetadataStaxWriter().write(baos, source.getDelegate());
            Metadata source2 =
                    new Metadata(new MetadataStaxReader().read(new ByteArrayInputStream(baos.toByteArray()), true));
            assertNotNull(source2);
        }
    
        /*-- START helper methods to populate metadata objects ---*/
        private static final String SNAPSHOT = "SNAPSHOT";
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  4. impl/maven-core/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar

    java.io.IOException; public static String toString(java.io.InputStream, String) throws java.io.IOException; public static String toString(java.io.InputStream, String, int) throws java.io.IOException; public static byte[] toByteArray(java.io.InputStream) throws java.io.IOException; public static byte[] toByteArray(java.io.InputStream, int) throws java.io.IOException; public static void copy(java.io.Reader, java.io.OutputStream) throws java.io.IOException; public static void copy(java.io.Reader, java.io.OutputStream,...
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 164.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/net/InetAddresses.java

        // illegal value is 255.255.255.255.
        if (coercedHash == 0xffffffff) {
          coercedHash = 0xfffffffe;
        }
    
        return getInet4Address(Ints.toByteArray(coercedHash));
      }
    
      /**
       * Returns an integer representing an IPv4 address regardless of whether the supplied argument is
       * an IPv4 address or not.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/Files.java

        }
    
        @Override
        public byte[] read() throws IOException {
          Closer closer = Closer.create();
          try {
            FileInputStream in = closer.register(openStream());
            return ByteStreams.toByteArray(in, in.getChannel().size());
          } catch (Throwable e) {
            throw closer.rethrow(e);
          } finally {
            closer.close();
          }
        }
    
        @Override
        public String toString() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 25 20:24:13 UTC 2025
    - 32.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SIDTest.java

        }
    
        /**
         * Test converting a SID to a byte array.
         */
        @Test
        void testToByteArray() {
            SID sid = new SID(adminSidBytes, 0);
            assertArrayEquals(adminSidBytes, sid.toByteArray());
        }
    
        /**
         * Test the equals method.
         *
         * @throws SmbException if the SID string is invalid
         */
        @Test
        void testEquals() throws SmbException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java

                oos.writeObject(original);
                oos.close();
    
                // Deserialize
                ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
                ObjectInputStream ois = new ObjectInputStream(bais);
                CrawlerStatus deserialized = (CrawlerStatus) ois.readObject();
                ois.close();
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/ntlmssp/Type2Message.java

         * @param context
         *            The local security context.
         */
        public void setContext(final byte[] context) {
            this.context = context;
        }
    
        @Override
        public byte[] toByteArray() throws IOException {
            int size = 48;
            int flags = getFlags();
            final String targetName = getTarget();
            final byte[] targetInformationBytes = getTargetInformation();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/SearchHelper.java

                try (final GZIPOutputStream gzipOut = new GZIPOutputStream(bos)) {
                    gzipOut.write(data);
                }
                return bos.toByteArray();
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * Retrieves and deserializes search parameters from browser cookies.
         *
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 05:56:45 UTC 2025
    - 36.3K bytes
    - Viewed (0)
Back to top