@ Override public FileBuilder addFile ( ByteBuffer content , Path target ) throws IOException { checkTarget ( target ) ; FileBuilder fb = new FileBuilder ( ) ; fb . content = content ; fb . target = target ; fb . size = content . limit ( ) ; fb . compressFilename ( ) ; fileBuilders . add ( fb ) ; return fb ; }
Add file to package from content