Package com.google.code.or.io.util

Examples of com.google.code.or.io.util.XDeserializer.available()


    r.packetMarker = d.readInt(1);
    r.affectedRows = d.readUnsignedLong();
    r.insertId = d.readUnsignedLong();
    r.serverStatus = d.readInt(2);
    r.warningCount = d.readInt(2);
    if(d.available() > 0) r.message = d.readFixedLengthString(d.available());
    return r;
  }
}
View Full Code Here


    r.sequence = packet.getSequence();
    r.packetMarker = d.readInt(1);
    r.errorCode = d.readInt(2);
    r.slash = d.readFixedLengthString(1);
    r.sqlState = d.readFixedLengthString(5);
    r.errorMessage = d.readFixedLengthString(d.available());
    return r;
  }

  public static ErrorPacket valueOf(int packetLength, int packetSequence, int packetMarker, XInputStream is)
  throws IOException {
View Full Code Here

  protected List<StatusVariable> parseStatusVariables(byte[] data)
  throws IOException {
    final List<StatusVariable> r = new ArrayList<StatusVariable>();
    final XDeserializer d = new XDeserializer(data);
    boolean abort = false;
    while(!abort && d.available() > 0) {
      final int type = d.readInt(1);
      switch(type) {
      case QAutoIncrement.TYPE: r.add(QAutoIncrement.valueOf(d)); break;
      case QCatalogCode.TYPE: r.add(QCatalogCode.valueOf(d)); break;
      case QCatalogNzCode.TYPE: r.add(QCatalogNzCode.valueOf(d)); break;
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.