Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for encoded (0.21 sec)

  1. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

        private static final byte[] BINARY_DATA = ORIGINAL.getBytes();
    
        private static final String ENCODED_DATA = "aG93IG5vdyBicm93biBjb3cNCg==";
    
        /**
         * @throws Exception
         */
        public void testEncode() throws Exception {
            assertEquals("1", ENCODED_DATA, Base64Util.encode(BINARY_DATA));
            System.out.println(Base64Util.encode(new byte[] { 'a', 'b', 'c' }));
        }
    
        /**
         * @throws Exception
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbFile.java

     * <tt>jcifs.smb1.Config.registerSmbURLHandler();</tt> method. This is required
     * to register the SMB protocol handler.
     * <p>
     * The userinfo component of the SMB URL (<tt>domain;user:pass</tt>) must
     * be URL encoded if it contains reserved characters. According to RFC 2396
     * these characters are non US-ASCII characters and most meta characters
     * however jCIFS will work correctly with anything but '@' which is used
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 107.9K bytes
    - Viewed (2)
  3. src/main/java/jcifs/util/Strings.java

        private static final String SECRET_MASK_REPLACE = "$1******$2";
    
        /**
         * 
         */
        private Strings () {}
    
    
        /**
         * 
         * @param str
         * @param encoding
         * @return encoded
         */
        public static byte[] getBytes ( String str, Charset encoding ) {
            if ( str == null ) {
                return new byte[0];
            }
            return str.getBytes(encoding);
        }
    
    
        /**
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/KuromojiCSVUtil.java

        private static final String ESCAPED_QUOTE = "\"\"";
    
        private KuromojiCSVUtil() {
        } // no instance!!!
    
        /**
         * Parse CSV line
         *
         * @param line
         *            line containing csv-encoded data
         * @return Array of values
         */
        public static String[] parse(final String line) {
            boolean insideQuote = false;
            final ArrayList<String> result = new ArrayList<>();
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/PermissionHelperTest.java

        }
    
        public void test_encode() {
            assertNull(permissionHelper.encode(null));
            assertNull(permissionHelper.encode(""));
            assertNull(permissionHelper.encode(" "));
            assertNull(permissionHelper.encode("{user}"));
            assertNull(permissionHelper.encode("{role}"));
            assertNull(permissionHelper.encode("{group}"));
            assertNull(permissionHelper.encode("(allow)"));
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/misc/Base64Util.java

        }
    
        private static void encode(final byte[] inData, final int inIndex, final char[] outData, final int outIndex) {
    
            final int i = ((inData[inIndex] & 0xff) << 16) + ((inData[inIndex + 1] & 0xff) << 8) + (inData[inIndex + 2] & 0xff);
            outData[outIndex] = ENCODE_TABLE[i >> 18];
            outData[outIndex + 1] = ENCODE_TABLE[i >> 12 & 0x3f];
            outData[outIndex + 2] = ENCODE_TABLE[i >> 6 & 0x3f];
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/filter/EncodingFilter.java

                                append = true;
                            }
                            locationBuf.append(urlCodec.encode(key, encoding));
                            locationBuf.append('=');
                            locationBuf.append(urlCodec.encode(value, encoding));
                        }
    
                    }
                    final HttpServletResponse res = (HttpServletResponse) response;
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/net/URLUtil.java

         * @return <code>application/x-www-form-urlencoded</code>でエンコード文字列
         */
        public static String encode(final String s, final String enc) {
            assertArgumentNotEmpty("s", s);
            assertArgumentNotEmpty("enc", enc);
    
            try {
                return URLEncoder.encode(s, enc);
            } catch (final UnsupportedEncodingException e) {
                throw new IORuntimeException(e);
            }
        }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

         * all but the first smb of the chaain do not have a header
         * and therefore we do not want to writeHeaderWireFormat. We
         * just recursivly call writeAndXWireFormat.
         */
    
        @Override
        public int encode ( byte[] dst, int dstIndex ) {
            int start = this.headerStart = dstIndex;
    
            dstIndex += writeHeaderWireFormat(dst, dstIndex);
            dstIndex += writeAndXWireFormat(dst, dstIndex);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Nov 28 10:56:27 GMT 2022
    - 14.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/go/GoAction.java

                        if (CharUtil.isUrlChar(c) || c == ' ') {
                            buf.append(c);
                        } else {
                            try {
                                buf.append(URLEncoder.encode(String.valueOf(c), Constants.UTF_8));
                            } catch (final UnsupportedEncodingException e) {
                                // NOP
                            }
                        }
                    }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.9K bytes
    - Viewed (0)
Back to top