question: public static void putFile ( ServiceClient h , final Operation put , File f ) throws IOException { final AsynchronousFileChannel ch = AsynchronousFileChannel . open ( f . toPath ( ) , StandardOpenOption . READ ) ; AtomicInteger completionCount = new AtomicInteger ( 0 ) ; String contentType = FileUtils . getContentType ( f . toURI ( ) ) ; final boolean [ ] fileIsDone = { false } ; putChunks ( h , put , ch , contentType , f . length ( ) , 0 , completionCount , fileIsDone ) ; }
target:  Given a POST operation and a File, post the file to the URI.