/** * Create a LOB object that fits in memory. * * @param type the type (Value.BLOB or CLOB) * @param small the byte array * @param precision the precision * @return the LOB */ public static ValueLobDb createSmallLob(int type, byte[] small, long precision) { return new ValueLobDb(type, small, precision); }
/** * Create a LOB value. * * @param type the type * @param handler the data handler * @param tableId the table id * @param id the lob id * @param hmac the message authentication code * @param precision the precision (number of bytes / characters) * @return the value */ public static ValueLobDb create(int type, int tableId, long id, long precision) { return new ValueLobDb(type, tableId, id, precision); }
ValueLobDb lob = new ValueLobDb(reader, remaining); return lob; } catch (IOException e) {
return ValueLobDb.createSmallLob(Value.BLOB, small, small.length); ValueLobDb lob = new ValueLobDb(buff, len, in, remaining); return lob; } catch (IOException e) {