Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 176 for mbuf (0.16 sec)

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

            int bufferSize;
            if (initialCapacity > 0 && initialCapacity <= MAX_BUF_SIZE) {
                bufferSize = initialCapacity;
            } else {
                bufferSize = DEFAULT_BUF_SIZE;
            }
            char[] buf = new char[bufferSize];
            int size = 0;
            int len;
            try {
                while ((len = reader.read(buf, size, bufferSize - size)) != -1) {
                    size += len;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/exception/SAXRuntimeException.java

         */
        protected static String createMessage(final SAXException cause) {
            final StringBuilder buf = new StringBuilder(100);
            buf.append(cause);
            if (cause instanceof SAXParseException) {
                final SAXParseException e = (SAXParseException) cause;
                if (e.getSystemId() != null) {
                    buf.append(" at ").append(e.getSystemId());
                }
                final int lineNumber = e.getLineNumber();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/api/BaseApiManager.java

        }
    
        protected void write(final String text, final String contentType, final String encoding) {
            final StringBuilder buf = new StringBuilder(50);
            if (contentType == null) {
                buf.append("text/plain");
            } else {
                buf.append(contentType);
            }
            buf.append("; charset=");
            final String enc;
            if (encoding == null) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/QueuesTest.java

          Future<?> possiblyIgnoredError4 = threadPool.submit(new Producer(q, 20));
    
          List<Object> buf = newArrayList();
          int elements = drain(q, buf, 100, MAX_VALUE, NANOSECONDS, interruptibly);
          assertEquals(100, elements);
          assertEquals(100, buf.size());
          assertDrained(q);
        }
      }
    
      public void testDrainTimesOut() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ByteProcessor.java

      /**
       * This method will be called for each chunk of bytes in an input stream. The implementation
       * should process the bytes from {@code buf[off]} through {@code buf[off + len - 1]} (inclusive).
       *
       * @param buf the byte array containing the data to process
       * @param off the initial offset into the array
       * @param len the length of data to be processed
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

                final StringBuilder buf = new StringBuilder(100);
                buf.append("Processing ");
                if (totalHits > 0) {
                    buf.append(arList.size()).append('/').append(totalHits).append(" docs (Doc:{access ");
                } else {
                    buf.append("no docs in indexing queue (Doc:{access ");
                }
                buf.append(systemHelper.getCurrentTimeAsLong() - execTime).append("ms");
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 24.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/dcerpc/DcerpcHandle.java

        }
    
    
        /**
         * @param fbuf
         * @throws DcerpcException
         */
        private void setupReceivedFragment ( NdrBuffer fbuf ) throws DcerpcException {
            fbuf.reset();
            fbuf.setIndex(8);
            fbuf.setLength(fbuf.dec_ndr_short());
    
            if ( this.securityProvider != null ) {
                this.securityProvider.unwrap(fbuf);
            }
        }
    
    
        /**
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jun 30 10:11:57 GMT 2019
    - 12.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/ReaderInputStream.java

          }
        }
      }
    
      /** Returns a new CharBuffer identical to buf, except twice the capacity. */
      private static CharBuffer grow(CharBuffer buf) {
        char[] copy = Arrays.copyOf(buf.array(), buf.capacity() * 2);
        CharBuffer bigger = CharBuffer.wrap(copy);
        Java8Compatibility.position(bigger, buf.position());
        Java8Compatibility.limit(bigger, buf.limit());
        return bigger;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/wizard/AdminWizardAction.java

            // normalize
            final StringBuilder buf = new StringBuilder(1000);
            for (int i = 0; i < configPath.length(); i++) {
                final char c = configPath.charAt(i);
                if (c == '\\') {
                    buf.append('/');
                } else if (c == ' ') {
                    buf.append("%20");
                } else if (CharUtil.isUrlChar(c)) {
                    buf.append(c);
                } else {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

                }
            }
            if (buf.indexOf("mm") == -1) {
                final int pos = buf.indexOf("m");
                if (pos != -1) {
                    buf.replace(pos, pos + 1, "mm");
                }
            }
            if (buf.indexOf("ss") == -1) {
                final int pos = buf.indexOf("s");
                if (pos != -1) {
                    buf.replace(pos, pos + 1, "ss");
                }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.2K bytes
    - Viewed (0)
Back to top