Package org.owfs.jowfsclient

Examples of org.owfs.jowfsclient.OwfsException


    if (!directory.isDirectory()) {
      /*
       * FIXME: Check what happends when trying to list dir contents of an
       * element. Fix arguments to OwfsException
       */
      throw new OwfsException("Error", 1);
    }
    for (File file : directory.listFiles()) {
      contents.add(file.getAbsolutePath().substring(root_length));
    }
    return contents;
View Full Code Here


        if (reader.ready())
          value += "\n";
      }
      return value;
    } else
      throw new OwfsException("Error", 1);
  }
View Full Code Here

    if (file.isFile() && file.canWrite()) {
      DataOutputStream outputStream = new DataOutputStream(
          new FileOutputStream(file));
      outputStream.writeBytes(dataToWrite);
    } else
      throw new OwfsException("Error", 1);

  }
View Full Code Here

          payload = "";

      }
    } else {
      /* Error received */
      throw new OwfsException("Error received", rawHeader[2]);
    }

    return new ResponsePacket(rawHeader[0], rawHeader[1], rawHeader[2],
        new Flags(rawHeader[3]), rawHeader[4], rawHeader[5], payload);
  }
View Full Code Here

TOP

Related Classes of org.owfs.jowfsclient.OwfsException

Copyright © 2018 www.massapicom. 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.