public class StreamInfo extends Object
Contains the details of a file stream.
Modifier and Type | Field and Description |
---|---|
static int |
SetAccessDate |
static int |
SetAllocationSize |
static int |
SetCreationDate |
static int |
SetModifyDate |
static int |
SetStreamSize |
static String |
StreamSeparator |
Constructor and Description |
---|
StreamInfo()
Default constructor
|
StreamInfo(String path)
Constructor
|
StreamInfo(String name,
int fid,
int stid)
Constructor
|
StreamInfo(String name,
int fid,
int stid,
long size,
long alloc)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getAccessDateTime()
Return the streams last access date/time.
|
long |
getAllocationSize()
Return the stream allocation size
|
long |
getCreationDateTime()
Return the stream creation date/time.
|
int |
getFileId()
Return the stream file id
|
long |
getModifyDateTime()
Return the modification date/time
|
String |
getName()
Return the stream name
|
String |
getPath()
Return the file path
|
int |
getSetStreamInformationFlags()
Return the set stream information flags
|
long |
getSize()
Return the stream size
|
int |
getStreamId()
Return the stream id
|
boolean |
hasAccessDateTime()
Determine if the last access date/time is available.
|
boolean |
hasCreationDateTime()
Determine if the creation date/time details are available.
|
boolean |
hasModifyDateTime()
Determine if the modify date/time details are available.
|
boolean |
hasSetFlag(int flag)
Determine if the specified set stream information flags is enabled
|
protected void |
parsePath(String path)
Parse a path to split into file name and stream name components
|
void |
setAccessDateTime(long timesec)
Set the streams last access date/time.
|
void |
setAllocationSize(long alloc)
Set the stream allocation size
|
void |
setCreationDateTime(long timesec)
Set the creation date/time for the stream.
|
void |
setFileId(int id)
Set the file id
|
void |
setModifyDateTime(long timesec)
Set the modifucation date/time for the stream.
|
void |
setName(String name)
Set the stream name
|
void |
setPath(String path)
Set the path, if it contains the stream name the path will be split into file name
and stream name components.
|
void |
setSize(long size)
Set the stream size
|
void |
setStreamId(int id)
Set the stream id
|
void |
setStreamInformationFlags(int setFlags)
Set the set stream information flags to indicated which values are to be set
|
String |
toString()
Return the stream information as a string
|
public static final String StreamSeparator
public static final int SetStreamSize
public static final int SetAllocationSize
public static final int SetModifyDate
public static final int SetCreationDate
public static final int SetAccessDate
public StreamInfo()
public StreamInfo(String path)
path
- Stringpublic StreamInfo(String name, int fid, int stid)
name
- Stringfid
- intstid
- intpublic StreamInfo(String name, int fid, int stid, long size, long alloc)
name
- Stringfid
- intstid
- intsize
- longalloc
- longpublic final String getPath()
public final String getName()
public final int getFileId()
public final int getStreamId()
public long getAccessDateTime()
public long getCreationDateTime()
public final long getModifyDateTime()
public final long getSize()
public final long getAllocationSize()
public boolean hasAccessDateTime()
public boolean hasCreationDateTime()
public boolean hasModifyDateTime()
public final boolean hasSetFlag(int flag)
flag
- intpublic final int getSetStreamInformationFlags()
public final void setPath(String path)
path
- Stringpublic final void setName(String name)
name
- Stringpublic void setAccessDateTime(long timesec)
timesec
- longpublic void setCreationDateTime(long timesec)
timesec
- longpublic void setModifyDateTime(long timesec)
timesec
- longpublic final void setFileId(int id)
id
- intpublic final void setStreamId(int id)
id
- intpublic final void setSize(long size)
size
- longpublic final void setAllocationSize(long alloc)
alloc
- longpublic final void setStreamInformationFlags(int setFlags)
setFlags
- intprotected final void parsePath(String path)
path
- StringCopyright © 2005–2017 Alfresco Software. All rights reserved.