A Binary object instance always wraps a non-null byte[] object. @author Fred Toussi (fredt@users dot sourceforge.net) @version 1.9.0 @since 1.7.2
42034204420542064207420842094210421142124213
// fall through case Types.SQL_BINARY : case Types.SQL_VARBINARY : if (o instanceof byte[]) { o = new BinaryData((byte[]) o, !connection.isNetConn); break; } try {
344345346347348349350351352353
} break; } token.tokenValue = new BinaryData(byteOutputStream.toByteArray(), false); byteOutputStream.reset(byteBuffer); }
23772378237923802381238223832384238523862387
if (token.isMalformed) { throw Error.error(ErrorCode.X_22018); } BinaryData data = new BinaryData(byteOutputStream.toByteArray(), false); byteOutputStream.reset(byteBuffer); return data;
170171172173174175176177178179
} BinaryData readSizedBinaryData() throws IOException { int len = readInt(); try { return (len < 0) ? null : new BinaryData((long) len, this); } catch (HsqlException he) { throw new IOException(he.getMessage()); } }
451452453454455456457458459460461462463
if (s == null) { return null; } BinaryData data = scanner.convertToBinary(s); if (data.length(null) == 0) { return null; } return new JavaObjectData(data.getBytes()); }
468469470471472473474475476
if (s == null) { return null; } BinaryData data = scanner.convertToBit(s); return data; }
481482483484485486487488489
if (s == null) { return null; } BinaryData data = scanner.convertToBinary(s); return data; }
194195196197198199200
return BinaryData.getBitData(b, length); } protected BinaryData readBinary() throws IOException { return new BinaryData(readByteArray(), false); }
14691470147114721473147414751476147714781479
} else if (dataType.isBinaryType()) { funcType = FUNC_TRIM_BINARY; if (nodes[1] == null) { nodes[1] = new ExpressionValue( new BinaryData(new byte[]{ 0 }, false), Type.SQL_BINARY); } } else { throw Error.error(ErrorCode.X_42563); }
11901191119211931194119511961197119811991200
default : throw Error.error(ErrorCode.X_42561); } return new BinaryData(v, dataType.precision); } } case FUNC_DIFFERENCE : { for (int i = 0; i < data.length; i++) { if (data[i] == null) {