| org.jvnet.mimepull.Data
All known Subclasses: org.jvnet.mimepull.FileData, org.jvnet.mimepull.MemoryData,
Data | interface Data (Code) | | author: Kohsuke Kawaguchi author: Jitendra Kotamraju |
createNext | Data createNext(DataHead dataHead, ByteBuffer buf)(Code) | | Factory method to create a Data. The implementation could
be file based one or memory based one.
Parameters: dataHead - start of the linked list of data objects Parameters: buf - contains partial content for a part Data |
read | byte[] read()(Code) | | TODO: should the return type be ByteBuffer ??
Return part's partial data. The data is read only.
a byte array which contains {#size()} bytes. The returnedarray may be larger than {#size()} bytes and contains datafrom offset 0. |
size | int size()(Code) | | size of the chunk given by the parser
size of the chunk |
writeTo | long writeTo(DataFile file)(Code) | | Write this partial data to a file
Parameters: file - to which the data needs to be written file pointer before the write operation(at which the data iswritten from) |
|
|