Package org.shiftone.jrat.util.io

Examples of org.shiftone.jrat.util.io.InputOutputException


  private InputStream getTargetRTE() {

    try {
      return getTarget();
    } catch (IOException e) {
      throw new InputOutputException("failed to get target InputStream", e);
    }
  }
View Full Code Here


  private void writeHeader(OutputStream out) {

    try {
      out.write(HEADER.getBytes());
    } catch (IOException e) {
      throw new InputOutputException("writeMethodEnter failed", e);
    }
  }
View Full Code Here

    try {
      out.writeByte(ENTER);
      out.writeInt(methodIndex);
    } catch (IOException e) {
      throw new InputOutputException("writeMethodEnter failed", e);
    }
  }
View Full Code Here

    try {
      out.writeByte(EXIT);
      out.writeInt((int) TimeUnit.MILLISECONDS.fromNanos(durationNanos));
      out.writeBoolean(success);
    } catch (IOException e) {
      throw new InputOutputException("writeMethodExit failed", e);
    }
  }
View Full Code Here

      out.writeInt(methodIndex);
      out.writeUTF(methodKey.getClassName());
      out.writeUTF(methodKey.getMethodName());
      out.writeUTF(methodKey.getSignature());
    } catch (IOException e) {
      throw new InputOutputException("writeMethodIndex failed", e);
    }
  }
View Full Code Here

    try {
      out.writeByte(DISBALE);
      out.writeInt(methodIndex);
      out.writeLong(callCount);
    } catch (IOException e) {
      throw new InputOutputException("writeMethodDisabled failed", e);
    }
  }
View Full Code Here

      out.writeInt(priority);
      out.writeUTF(threadName);
      out.writeUTF(groupName);
      out.writeLong(currentTimeMillis);
    } catch (IOException e) {
      throw new InputOutputException("writeMethodDisabled failed", e);
    }
  }
View Full Code Here

    try {
      out.writeByte(EOF);
      out.flush();
    } catch (IOException e) {
      throw new InputOutputException("writeEOF failed", e);
    }
  }
View Full Code Here

    try {
      while (inputStream.read() != '\n')
        ;
      in = new DataInputStream(inputStream);
    } catch (IOException e) {
      throw new InputOutputException("error reading header", e);
    }
  }
View Full Code Here

    }
    sb.append("\n");
    try {
      writer.write(sb.toString());
    } catch (IOException e) {
      throw new InputOutputException("failed to record", e);
    }
    current = new String[delimitedFormat.getFieldCount()];
  }
View Full Code Here

TOP

Related Classes of org.shiftone.jrat.util.io.InputOutputException

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.