Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for realBytes (0.3 sec)

  1. android/guava-tests/test/com/google/common/base/Utf8Test.java

        return new String(chars);
      }
    
      private static byte[] toByteArray(int... bytes) {
        byte[] realBytes = new byte[bytes.length];
        for (int i = 0; i < bytes.length; i++) {
          realBytes[i] = (byte) bytes[i];
        }
        return realBytes;
      }
    
      private static void assertWellFormed(int... bytes) {
        assertTrue(Utf8.isWellFormed(toByteArray(bytes)));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/Utf8Test.java

        return new String(chars);
      }
    
      private static byte[] toByteArray(int... bytes) {
        byte[] realBytes = new byte[bytes.length];
        for (int i = 0; i < bytes.length; i++) {
          realBytes[i] = (byte) bytes[i];
        }
        return realBytes;
      }
    
      private static void assertWellFormed(int... bytes) {
        assertTrue(Utf8.isWellFormed(toByteArray(bytes)));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/FileUtil.java

            }
        }
    
        /**
         * ファイルの内容をバイト配列に読み込んで返します。
         *
         * @param file
         *            ファイル。{@literal null}であってはいけません
         * @return ファイルの内容を読み込んだバイト配列
         */
        public static byte[] readBytes(final File file) {
            assertArgumentNotNull("file", file);
    
            final FileInputStream is = InputStreamUtil.create(file);
            try {
                final FileChannel channel = is.getChannel();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ByteStreams.java

       * @throws IOException if an I/O error occurs
       * @since 14.0
       */
      @CanIgnoreReturnValue // some processors won't return a useful result
      @ParametricNullness
      public static <T extends @Nullable Object> T readBytes(
          InputStream input, ByteProcessor<T> processor) throws IOException {
        checkNotNull(input);
        checkNotNull(processor);
    
        byte[] buf = createBuffer();
        int read;
        do {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java

        public HtmlResponse edit(final EditForm form) {
            final String jspType = "view";
            final File jspFile = getJspFile(form.fileName, jspType);
            try {
                form.content = new String(FileUtil.readBytes(jspFile), Constants.UTF_8);
            } catch (final UnsupportedEncodingException e) {
                throw new FessSystemException("Invalid encoding", e);
            }
            saveToken();
            return asEditHtml(form);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/io/FileUtilTest.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.io;
    
    import static org.codelibs.core.io.FileUtil.readBytes;
    import static org.hamcrest.CoreMatchers.is;
    import static org.junit.Assert.assertThat;
    
    import java.io.File;
    import java.net.URL;
    
    import org.codelibs.core.net.URLUtil;
    import org.junit.Test;
    
    /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/Files.java

          imports = "com.google.common.io.Files")
      @CanIgnoreReturnValue // some processors won't return a useful result
      @ParametricNullness
      public
      static <T extends @Nullable Object> T readBytes(File file, ByteProcessor<T> processor)
          throws IOException {
        return asByteSource(file).read(processor);
      }
    
      /**
       * Computes the hash code of the {@code file} using {@code hashFunction}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
Back to top