public final int writeTo ( final OutputStream os , int offset , int maxWriteSize ) throws IOException { int bytesToWrite = Math . min ( blobReference . getBytes ( ) . length - offset , maxWriteSize ) ; os . write ( blobReference . getBytes ( ) , offset , blobReference . getBytes ( ) . length ) ; return bytesToWrite ; }
Writes the parameter to an outputstream .