public class VisorFileBlock extends VisorDataTransferObject
Constructor and Description |
---|
VisorFileBlock()
Default constructor.
|
VisorFileBlock(String path,
long off,
long size,
long lastModified,
boolean zipped,
byte[] data)
Create file block with given parameters.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getData() |
long |
getLastModified() |
long |
getOffset() |
String |
getPath() |
long |
getSize() |
boolean |
isZipped() |
protected void |
readExternalData(byte protoVer,
ObjectInput in)
Load object's specific data content.
|
String |
toString() |
protected void |
writeExternalData(ObjectOutput out)
Save object's specific data content.
|
getProtocolVersion, readExternal, toList, writeExternal
public VisorFileBlock()
public VisorFileBlock(String path, long off, long size, long lastModified, boolean zipped, byte[] data)
path
- File path.off
- Marker position.size
- File size.lastModified
- Timestamp of last modification of the file.zipped
- Whether data was zipped.data
- Data bytes.public String getPath()
public long getOffset()
public long getSize()
public long getLastModified()
public boolean isZipped()
public byte[] getData()
protected void writeExternalData(ObjectOutput out) throws IOException
writeExternalData
in class VisorDataTransferObject
out
- Output object to write data content.IOException
- If I/O errors occur.protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException
readExternalData
in class VisorDataTransferObject
protoVer
- Input object version.in
- Input object to load data content.IOException
- If I/O errors occur.ClassNotFoundException
- If the class for an object being restored cannot be found.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017