Sample use:
private static void setRequestJpegContent(HttpRequest request, File jpegFile) { request.setContent(new FileContent("image/jpeg", jpegFile)); }
Implementation is not thread-safe.
@since 1.4 @author moshenko@google.com (Jacob Moshenko)To read from a file, use the InputStream
returned by {@link #getInputStream}.
To write to a file, use the OutputStream
returned by {@link #getOutputStream} method. This will create the file, and the parentfolder, if necessary.
A file may have multiple InputStreams open at the sametime.
@author Adam Murdoch @see FileObject#getContentA file content is implicitly referenced by one or many {@link FileVersion}s through the checksum attribute. A file content always contains the full list of chunks it resembles. There are no deltas!
Unlike the chunk list in a {@link MultiChunkEntry}, the order of the chunks is very important, because a file can only be reconstructed if the order of its chunks are followed.
@author Philipp C. Heckel
|
|
|
|
|
|
|
|
|
|
|
|