コード例 #1
0
  protected BinaryData readBinary() throws IOException {

    String s = readString();

    if (s == null) {
      return null;
    }

    BinaryData data = scanner.convertToBinary(s);

    return data;
  }
コード例 #2
0
  protected IntervalSecondData readDaySecondInterval(Type type) throws IOException {

    String s = readString();

    if (s == null) {
      return null;
    }

    s = s.trim();

    if (s.length() == 0) {
      return null;
    }

    return (IntervalSecondData) scanner.newInterval(s, (IntervalType) type);
  }
コード例 #3
0
  protected Object readOther() throws IOException {

    String s = readString();

    if (s == null) {
      return null;
    }

    BinaryData data = scanner.convertToBinary(s);

    if (data.length(null) == 0) {
      return null;
    }

    return new JavaObjectData(data.getBytes());
  }
コード例 #4
0
  protected TimestampData readTimestamp(Type type) throws IOException {

    String s = readString();

    if (s == null) {
      return null;
    }

    s = s.trim();

    if (s.length() == 0) {
      return null;
    }

    return scanner.newTimestamp(s);
  }