Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 129 for toByteArray (0.05 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java

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

            if (sk == null) {
                return;
            }
            final MessageDigest mac = Crypto.getHMACT64(sk);
            mac.update(type1);
            mac.update(type2);
            final byte[] type3 = toByteArray();
            mac.update(type3);
            setMic(mac.digest());
        }
    
        /**
         * Creates a Type-3 message with the specified parameters.
         *
         * @param flags
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/ByteSource.java

        try {
          InputStream in = closer.register(openStream());
          Optional<Long> size = sizeIfKnown();
          return size.isPresent()
              ? ByteStreams.toByteArray(in, size.get())
              : ByteStreams.toByteArray(in);
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 08 18:35:13 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/Stats.java

      /**
       * Gets a byte array representation of this instance.
       *
       * <p><b>Note:</b> No guarantees are made regarding stability of the representation between
       * versions.
       */
      public byte[] toByteArray() {
        ByteBuffer buff = ByteBuffer.allocate(BYTES).order(ByteOrder.LITTLE_ENDIAN);
        writeTo(buff);
        return buff.array();
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java

                final ByteArrayOutputStream baos = new ByteArrayOutputStream();
                client.downloadObject(objectName, baos);
                out.write(new java.io.ByteArrayInputStream(baos.toByteArray()));
            } catch (final Exception e) {
                throw new StorageException("Failed to download " + objectName, e);
            }
        }
    
        /**
         * Deletes an object from the storage system.
         *
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/SourceSinkFactories.java

          byte[] buffer = new byte[100];
          int read;
          while ((read = in.read(buffer)) != -1) {
            out.write(buffer, 0, read);
          }
          return out.toByteArray();
        }
      }
    
      private static class FileCharSourceFactory extends FileFactory implements CharSourceFactory {
    
        @Override
        public CharSource createSource(String string) throws IOException {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/HashFunction.java

     * equivalent to hashing the {@code int} value {@code 0x04030201}. If this isn't what you need,
     * methods such as {@link Integer#reverseBytes} and {@link Ints#toByteArray} will help.
     *
     * <h3>Relationship to {@link Object#hashCode}</h3>
     *
     * <p>Java's baked-in concept of hash codes is constrained to 32 bits, and provides no separation
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/hash/HashFunction.java

     * equivalent to hashing the {@code int} value {@code 0x04030201}. If this isn't what you need,
     * methods such as {@link Integer#reverseBytes} and {@link Ints#toByteArray} will help.
     *
     * <h3>Relationship to {@link Object#hashCode}</h3>
     *
     * <p>Java's baked-in concept of hash codes is constrained to 32 bits, and provides no separation
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleTest.java

            ObjectOutputStream oos = new ObjectOutputStream(baos);
            oos.writeObject(originalRule);
            oos.close();
    
            // Deserialize
            ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
            ObjectInputStream ois = new ObjectInputStream(bais);
            TestRule deserializedRule = (TestRule) ois.readObject();
            ois.close();
    
            // Verify
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  10. android/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)
Back to top