Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getASCIIBytes (0.18 sec)

  1. src/main/java/jcifs/internal/smb1/com/SmbComNegotiate.java

            ByteArrayOutputStream bos = new ByteArrayOutputStream();
    
            for ( String dialect : this.dialects ) {
                bos.write(0x02);
                try {
                    bos.write(Strings.getASCIIBytes(dialect));
                }
                catch ( IOException e ) {
                    throw new RuntimeCIFSException(e);
                }
                bos.write(0x0);
            }
    
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Strings.java

            return getBytes(str, UNI_ENCODING);
        }
    
    
        /**
         * 
         * @param str
         * @return the string as bytes (ASCII)
         */
        public static byte[] getASCIIBytes ( String str ) {
            return getBytes(str, ASCII_ENCODING);
        }
    
    
        /**
         * @param str
         * @param config
         * @return the string as bytes
         */
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 4.9K bytes
    - Viewed (0)
Back to top