/** * Reads specified field in given pipe into the OutputStream * @param loc field to read to stream * @param pipe to be read from * @param out stream to read into */ public static void readFieldIntoOutputStream(int loc, Pipe pipe, OutputStream out) throws IOException { int length = readBytesLength(pipe, loc); if (length>0) { int off = readBytesPosition(pipe, loc) & Pipe.blobMask(pipe); copyFieldToOutputStream(out, length, readBytesBackingArray(pipe, loc), off, pipe.sizeOfBlobRing-off); } }
/** * Reads specified field in given pipe into the OutputStream * @param loc field to read to stream * @param pipe to be read from * @param out stream to read into */ public static void readFieldIntoOutputStream(int loc, Pipe pipe, OutputStream out) throws IOException { int length = readBytesLength(pipe, loc); if (length>0) { int off = readBytesPosition(pipe, loc) & Pipe.blobMask(pipe); copyFieldToOutputStream(out, length, readBytesBackingArray(pipe, loc), off, pipe.sizeOfBlobRing-off); } }
/** * Reads specified field in given pipe into the OutputStream * @param loc field to read to stream * @param pipe to be read from * @param out stream to read into */ public static void readFieldIntoOutputStream(int loc, Pipe pipe, OutputStream out) throws IOException { int length = readBytesLength(pipe, loc); if (length>0) { int off = readBytesPosition(pipe, loc) & Pipe.blobMask(pipe); copyFieldToOutputStream(out, length, readBytesBackingArray(pipe, loc), off, pipe.sizeOfBlobRing-off); } }