/** * Writes the representation to a byte channel. Optimizes using the file * channel transferTo method. * * @param writableChannel * A writable byte channel. */ @Override public void write(WritableByteChannel writableChannel) throws IOException { IoUtils.copy(getChannel(), writableChannel); }