Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Buffer (0.15 sec)

  1. src/main/java/org/codelibs/core/message/MessageFormatter.java

            if (args == null || args.length == 0) {
                return "";
            }
            final StringBuilder buffer = new StringBuilder();
            for (final Object arg : args) {
                buffer.append(arg + ", ");
            }
            buffer.setLength(buffer.length() - ", ".length());
            return new String(buffer);
        }
    
        /**
         * 初期化します。
         */
        protected static synchronized void initialize() {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/FileUtil.java

            try {
                final FileChannel channel = is.getChannel();
                final ByteBuffer buffer = ByteBuffer.allocate((int) ChannelUtil.size(channel));
                ChannelUtil.read(channel, buffer);
                return buffer.array();
            } finally {
                CloseableUtil.close(is);
            }
        }
    
        /**
         * デフォルトエンコーディングでファイルからテキストを読み込みます。
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/util/InputStreamThread.java

        public static final int MAX_BUFFER_SIZE = 1000;
    
        private final List<String> list = new LinkedList<>();
    
        private final int bufferSize;
    
        private final Consumer<String> outputCallback;
    
        @Deprecated
        public InputStreamThread(final InputStream is, final String charset) {
            this(is, Charset.forName(charset), MAX_BUFFER_SIZE, null);
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/JobProcess.java

    public class JobProcess {
        protected Process process;
    
        protected InputStreamThread inputStreamThread;
    
        public JobProcess(final Process process) {
            this(process, InputStreamThread.MAX_BUFFER_SIZE, null);
        }
    
        public JobProcess(final Process process, final int bufferSize, final Consumer<String> outputCallback) {
            this.process = process;
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/security/MessageDigestUtil.java

            final StringBuilder buffer = new StringBuilder(200);
            for (final byte element : digest) {
                final String tmp = Integer.toHexString(element & 0xff);
                if (tmp.length() == 1) {
                    buffer.append('0').append(tmp);
                } else {
                    buffer.append(tmp);
                }
            }
            return buffer.toString();
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/nio/ChannelUtil.java

         * @param buffer
         *            バイトバッファ。{@literal null}であってはいけません
         * @return 読み込んだバイト数
         */
        public static int read(final FileChannel channel, final ByteBuffer buffer) {
            assertArgumentNotNull("channel", channel);
            assertArgumentNotNull("buffer", buffer);
    
            try {
                return channel.read(buffer);
            } catch (final IOException e) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/io/CopyUtil.java

                final ByteBuffer buffer = ByteBuffer.allocate(DEFAULT_BUF_SIZE);
                final byte[] buf = buffer.array();
                int len;
                int amount = 0;
                while ((len = in.read(buf)) != -1) {
                    buffer.limit(len);
                    channel.write(buffer, amount);
                    buffer.clear();
                    amount += len;
                }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 52.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

            }
        }
    
        public JobProcess startProcess(final String sessionId, final List<String> cmdList, final Consumer<ProcessBuilder> pbCall) {
            return startProcess(sessionId, cmdList, pbCall, InputStreamThread.MAX_BUFFER_SIZE, null);
        }
    
        public synchronized JobProcess startProcess(final String sessionId, final List<String> cmdList, final Consumer<ProcessBuilder> pbCall,
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/convert/StringConversionUtilTest.java

            assertEquals("", StringConversionUtil.fromWindowsMapping(""));
            assertEquals("abc 123", StringConversionUtil.fromWindowsMapping("abc 123"));
            assertEquals("abc\uFF5E\u2225\uFF0D\uFFE0\uFFE1\uFFE2",
                    StringConversionUtil.fromWindowsMapping("abc\u301C\u2016\u2212\u00A2\u00A3\u00AC"));
        }
    
        /**
         * @throws Exception
         */
        public void testToWindowsMapping() throws Exception {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/crypto/CachedCipher.java

                    throw new NoSuchPaddingRuntimeException(e);
                }
            }
            return cipher;
        }
    
        protected void offerEncryptoCipher(final Cipher cipher) {
            encryptoQueue.offer(cipher);
        }
    
        protected Cipher pollDecryptoCipher() {
            Cipher cipher = decryptoQueue.poll();
            if (cipher == null) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.1K bytes
    - Viewed (0)
Back to top