Package org.tc65sh.util

Examples of org.tc65sh.util.ByteArray.toHexString()


    byte flags;
    if ( pathname == null || pathname.length() == 0 || pathname.equals("/") || pathname.equals("..") || pathname.toLowerCase().equals("a:") || pathname.toLowerCase().equals("a:/") ) {
      flags = Obex.FLAG_SETPATH_PARENT_FOLDER;
    } else {
      ByteArray obexPath = Obex.encodeUtf16String(pathname);
      Log.debug(this.getClass(), "obexPath = "+obexPath.toPrintableString()+" " +obexPath.toHexString());
      header.append(Obex.HEADER_NAME);
      header.append(Obex.shortToBytes(obexPath.length()+3));
      header.append(obexPath);
      if ( create ) {
        flags = Obex.FLAG_SETPATH_CREATE;
View Full Code Here


    while( serialIn.available() > 0 ) {
      int readCount = serialIn.read(buf);
      totalReadCount += readCount;
      ByteArray temp = new ByteArray(buf, 0, readCount);
      if ( Log.isDebugEnabled() ) {
        Log.debug(this.getClass(), "received " + temp.length() + " bytes: " + temp.toHexString() + temp.toPrintableString());
      }
      byteArray.append(temp);
    }
    return totalReadCount;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.