Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for buf (0.2 sec)

  1. src/main/java/org/codelibs/core/exception/ConstructorNotFoundRuntimeException.java

            }
            final StringBuilder buf = new StringBuilder(100);
            for (final Object arg : methodArgs) {
                if (arg != null) {
                    buf.append(arg.getClass().getName());
                } else {
                    buf.append("null");
                }
                buf.append(", ");
            }
            buf.setLength(buf.length() - 2);
            return new String(buf);
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/xml/DomUtil.java

            final String tag = element.getTagName();
            buf.append('<');
            buf.append(tag);
            appendAttrs(element.getAttributes(), buf);
            buf.append('>');
            appendChildren(element.getChildNodes(), buf);
            buf.append("</");
            buf.append(tag);
            buf.append('>');
        }
    
        /**
         * {@link NodeList}の文字列表現を追加します。
         *
         * @param children
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/text/JsonUtil.java

            final StringBuilder buf = new StringBuilder(len * 2);
    
            for (int i = 0; i < len; i++) {
                c = value.charAt(i);
                switch (c) {
                case '\\':
                case '"':
                    buf.append('\\');
                    buf.append(c);
                    break;
                case '/':
                    buf.append('\\');
                    buf.append(c);
                    break;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/lang/StringUtil.java

            final StringBuilder buf = new StringBuilder();
            appendHex(buf, i);
            return new String(buf);
        }
    
        /**
         * 文字列に、数値を16進数に変換した文字列を追加します。
         *
         * @param buf
         *            追加先の文字列
         * @param i
         *            数値
         */
        public static void appendHex(final StringBuilder buf, final byte i) {
            buf.append(Character.forDigit((i & 0xf0) >> 4, 16));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

                }
            }
            if (buf.indexOf("MM") == -1) {
                final int pos = buf.indexOf("M");
                if (pos != -1) {
                    buf.replace(pos, pos + 1, "MM");
                }
            }
            if (buf.indexOf("dd") == -1) {
                final int pos = buf.indexOf("d");
                if (pos != -1) {
                    buf.replace(pos, pos + 1, "dd");
                }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

            final StringBuilder buf = new StringBuilder(256);
            buf.append("propertyName=").append(propertyName).append(",propertyType=").append(propertyType.getName()).append(",readMethod=")
                    .append(readMethod != null ? readMethod.getName() : "null").append(",writeMethod=")
                    .append(writeMethod != null ? writeMethod.getName() : "null");
            return new String(buf);
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/exception/SQLRuntimeException.java

                next = next.getNextException();
            }
            Throwable t = cause.getCause();
            while (t != null) {
                buf.append(t.getMessage()).append("], [");
                t = t.getCause();
            }
            buf.setLength(buf.length() - 4);
            return new String(buf);
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/text/Tokenizer.java

                    }
                    if (i >= buf.length) {
                        final char[] nb = new char[buf.length * 2];
                        System.arraycopy(buf, 0, nb, 0, buf.length);
                        buf = nb;
                    }
                    buf[i++] = (char) c;
                    d = read();
                }
                peekc = d;
                sval = String.copyValueOf(buf, 0, i);
                return true;
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/net/UuidUtil.java

         * @return UUIDの文字列
         */
        public static String create() {
            final StringBuilder buf = new StringBuilder(BASE.length() * 2);
            buf.append(BASE);
            final int lowTime = (int) (System.currentTimeMillis() >> 32);
            StringUtil.appendHex(buf, lowTime);
            StringUtil.appendHex(buf, RANDOM.nextInt());
            return buf.toString();
        }
    
        private static byte[] getAddress() {
            try {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  10. 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)
Back to top