public class StreamInfo extends Object
Contains the details of a file stream.
Modifier and Type | Field and Description |
---|---|
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 |
getAllocationSize()
Return the stream allocation size
|
int |
getFileId()
Return the stream file id
|
String |
getName()
Return the stream name
|
String |
getPath()
Return the file path
|
long |
getSize()
Return the stream size
|
int |
getStreamId()
Return the stream id
|
protected void |
parsePath(String path)
Parse a path to split into file name and stream name components
|
void |
setAllocationSize(long alloc)
Set the stream allocation size
|
void |
setFileId(int id)
Set the file id
|
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
|
String |
toString()
Return the stream information as a string
|
public static final String StreamSeparator
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 final long getSize()
public final long getAllocationSize()
public final void setPath(String path)
path
- Stringpublic final void setName(String name)
name
- Stringpublic 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
- longprotected final void parsePath(String path)
path
- StringCopyright © 2005–2017 Alfresco Software. All rights reserved.