public class ExtendedFileInfo extends FileInfo
Adds extra file information available under NT to the standard file information, such as compression details and extended attributes.
Constructor and Description |
---|
ExtendedFileInfo()
Default constructor
|
ExtendedFileInfo(java.lang.String name,
long size,
int attr)
Class constructor
|
ExtendedFileInfo(java.lang.String fname,
long fsize,
int fattr,
int fdate,
int ftime)
Construct an SMB file information object.
|
Modifier and Type | Method and Description |
---|---|
void |
addNTFSStreamInfo(StreamInfo stream)
Add the details of an NTFS stream to the streams list for this file
|
long |
getCompressedSize()
Return the compressed file size
|
int |
getCompressionFormat()
Return the compression format
|
byte[] |
getExtendedAttrbuteData()
Return the extended attribute raw data block
|
int |
getExtendedAttributesSize()
Return the extended attributes size
|
int |
getLinkCount()
Return the link count
|
StreamInfoList |
getNTFSStreams()
Return the NTFS streams list
|
boolean |
hasDeletePending()
Check if a file delete is pending for this file
|
boolean |
hasExtendedAttributeData()
Check if the extended attribute raw data is available
|
boolean |
hasNTFSStreams()
Check if the streams list is valid
|
int |
numberOfNTFSStreams()
Return the NTFS stream count
|
void |
setCompressedSizeFormat(long siz,
int fmt)
Set the compressed file size and compression format
|
void |
setDeletePending(boolean del)
Set the delete pending flag
|
void |
setExtendedAttributeData(byte[] eadata)
Set the extended attribute raw data
|
void |
setExtendedAttributesSize(int siz)
Set the extended attribute size
|
void |
setLinkCount(int cnt)
Set the link count
|
getAccessDateTime, getAllocationSize, getAllocationSizeInt, getCreationDateTime, getFileAttributes, getFileId, getFileName, getFormattedAttributes, getModifyDateTime, getPath, getShortName, getSize, getSizeInt, hasAccessDateTime, hasAttribute, hasCreationDateTime, hasModifyDateTime, hasShortName, isArchived, isCompressed, isDirectory, isEncrypted, isHidden, isIndexed, isOffline, isReadOnly, isSystem, isTemporary, resetInfo, setAccessDateTime, setAccessDateTime, setAllocationSize, setCreationDateTime, setCreationDateTime, setFileAttributes, setFileId, setFileName, setFileSize, setModifyDateTime, setModifyDateTime, setPath, setShortName, setSize, setSize, toString
public ExtendedFileInfo()
public ExtendedFileInfo(java.lang.String name, long size, int attr)
name
- Stringsize
- longattr
- intpublic ExtendedFileInfo(java.lang.String fname, long fsize, int fattr, int fdate, int ftime)
fname
- File name string.fsize
- File size, in bytes.fattr
- File attributes.fdate
- SMB encoded file date.ftime
- SMB encoded file time.public final int getExtendedAttributesSize()
public final boolean hasExtendedAttributeData()
public final byte[] getExtendedAttrbuteData()
public final long getCompressedSize()
public final int getCompressionFormat()
public final boolean hasNTFSStreams()
public final int numberOfNTFSStreams()
public final StreamInfoList getNTFSStreams()
public final boolean hasDeletePending()
public final int getLinkCount()
public final void setExtendedAttributesSize(int siz)
siz
- intpublic final void setExtendedAttributeData(byte[] eadata)
eadata
- byte[]public final void setCompressedSizeFormat(long siz, int fmt)
siz
- longfmt
- intpublic final void addNTFSStreamInfo(StreamInfo stream)
stream
- StreamInfopublic final void setDeletePending(boolean del)
del
- booleanpublic final void setLinkCount(int cnt)
cnt
- intCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.