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
455456457458459460461462463
if (s == null) { return null; } BinaryData data = scanner.convertToBit(s); return data; }
468469470471472473474475476
if (s == null) { return null; } BinaryData data = scanner.convertToBinary(s); return data; }
194195196197198199200
int length = readInt(); byte[] b = new byte[(length + 7) / 8]; readFully(b); return new BinaryData(b, length); }
198199200201202203204
return new BinaryData(b, length); } protected BinaryData readBinary() throws IOException { return new BinaryData(readByteArray(), false); }