public class StreamInfo
extends java.lang.Object
Contains the details of a file stream.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
StreamSeparator |
| Constructor and Description |
|---|
StreamInfo()
Default constructor
|
StreamInfo(java.lang.String path)
Constructor
|
StreamInfo(java.lang.String name,
int fid,
int stid)
Constructor
|
StreamInfo(java.lang.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
|
java.lang.String |
getName()
Return the stream name
|
java.lang.String |
getPath()
Return the file path
|
long |
getSize()
Return the stream size
|
int |
getStreamId()
Return the stream id
|
protected void |
parsePath(java.lang.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(java.lang.String name)
Set the stream name
|
void |
setPath(java.lang.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
|
java.lang.String |
toString()
Return the stream information as a string
|
public static final java.lang.String StreamSeparator
public StreamInfo()
public StreamInfo(java.lang.String path)
path - Stringpublic StreamInfo(java.lang.String name,
int fid,
int stid)
name - Stringfid - intstid - intpublic StreamInfo(java.lang.String name,
int fid,
int stid,
long size,
long alloc)
name - Stringfid - intstid - intsize - longalloc - longpublic final java.lang.String getPath()
public final java.lang.String getName()
public final int getFileId()
public final int getStreamId()
public final long getSize()
public final long getAllocationSize()
public final void setPath(java.lang.String path)
path - Stringpublic final void setName(java.lang.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(java.lang.String path)
path - Stringpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.