Examples of readBytes()


Examples of uk.ac.ucl.panda.utility.io.IndexInput.readBytes()

          // and copy to dest directory
          long len = is.length();
          long readCount = 0;
          while (readCount < len) {
            int toRead = readCount + BufferedIndexOutput.getBufSize() > len ? (int)(len - readCount) : BufferedIndexOutput.getBufSize();
            is.readBytes(buf, 0, toRead);
            os.writeBytes(buf, toRead);
            readCount += toRead;
          }
        } finally {
          // graceful cleanup
View Full Code Here

Examples of util.StreamReader.readBytes()

    if (input == null) {
      return new NotFoundResponder().makeResponse(context, request);
    }
    StreamReader reader = new StreamReader(input);
    // Set a hard limit on the amount of data that can be read:
    byte[] content = reader.readBytes(RESOURCE_SIZE_LIMIT);
    SimpleResponse response = new SimpleResponse();
    response.setContent(content);
    setContentType(classpathResource, response);
    lastModifiedDate = LAST_MODIFIED_FOR_RESOURCES;
    response.setLastModifiedHeader(lastModifiedDate);
View Full Code Here

Examples of ve.net.dcs.sc.component.ScaleConnector.readBytes()

          sc.setFloatingPoint(fPoint);

          byte[] bytesPortValue = null;
          String portValue = "";

          bytesPortValue = sc.readBytes();
          portValue = sc.readValue();

          viewServerMode.getLblPortValue().setText(portValue);

          if (sc.isStableValue()) {
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.