Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for bytes (0.16 sec)

  1. src/test/java/org/codelibs/core/convert/NumberConversionUtilTest.java

         */
        public void testConvertNumber_byte() throws Exception {
            assertEquals(new Byte("1"), NumberConversionUtil.convertNumber(Byte.class, "1"));
        }
    
        /**
         * @throws Exception
         */
        public void testConvertNumber_primitiveWrapper() throws Exception {
            assertEquals(new Byte("1"), NumberConversionUtil.convertPrimitiveWrapper(byte.class, "1"));
    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)
  2. src/test/java/org/codelibs/core/io/CopyUtilTest.java

    import java.io.StringWriter;
    import java.net.URL;
    
    import org.codelibs.core.net.URLUtil;
    import org.junit.Test;
    
    /**
     * @author koichik
     */
    public class CopyUtilTest {
    
        static byte[] srcBytes = new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
    
        static String srcString = "ABCDEFGHIJKLMN";
    
        static String urlString = "あいうえお";
    
        InputStream is = new ByteArrayInputStream(srcBytes);
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/BinaryConversionUtil.java

    /**
     * byte配列用の変換ユーティリティです。
     *
     * @author higa
     */
    public abstract class BinaryConversionUtil {
    
        /**
         * {@literal byte}の配列に変換します。
         *
         * @param o
         *            変換元のオブジェクト
         * @return {@literal byte}の配列
         */
        public static byte[] toBinary(final Object o) {
            if (o instanceof byte[]) {
                return (byte[]) o;
            } else if (o == null) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/text/Tokenizer.java

        private static final int NEED_CHAR = Integer.MAX_VALUE;
    
        private static final int QUOTE = '\'';
    
        private static final byte CT_WHITESPACE = 1;
    
        private static final byte CT_ALPHA = 4;
    
        private final byte[] ctype;
    
        private static byte[] defaultCtype = new byte[256];
    
        private final String str;
    
        private int colno = 0;
    
        private int ttype = TT_NOTHING;
    
        private String sval;
    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)
  5. src/test/java/org/codelibs/core/io/SerializeUtilTest.java

            assertEquals("3", "2", b[1]);
        }
    
        /**
         * @throws Exception
         */
        public void testObjectAndBinary() throws Exception {
            final String o = "hoge";
            final byte[] binary = SerializeUtil.fromObjectToBinary(o);
            assertEquals(o, SerializeUtil.fromBinaryToObject(binary));
        }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/misc/AssertionUtil.java

         * @param argValue
         *            引数の値
         * @throws EmptyArgumentException
         *             引数が<code>null</code>または空の配列の場合。
         */
        public static void assertArgumentNotEmpty(final String argName, final byte[] argValue) {
            if (ArrayUtil.isEmpty(argValue)) {
                throw new EmptyArgumentException(argName, "ECL0011", asArray(argName));
            }
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/lang/StringUtil.java

        }
    
        /**
         * 16進数の文字列に変換します。
         *
         * @param bytes
         *            バイトの配列
         * @return 16進数の文字列
         */
        public static String toHex(final byte[] bytes) {
            if (bytes == null) {
                return "";
            }
            final StringBuilder sb = new StringBuilder(bytes.length * 2);
            for (final byte b : bytes) {
                appendHex(sb, b);
            }
    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)
Back to top