public abstract class PseudoFile extends Object
Creates a pseudo file entry for a folder that maps to a file outside of the usual file area but appears in folder listings for the owner folder.
Modifier and Type | Field and Description |
---|---|
protected static long |
_creationDateTime |
Modifier | Constructor and Description |
---|---|
protected |
PseudoFile(String name)
Class constructor
|
protected |
PseudoFile(String name,
int flags)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getAttributes()
Return the standard file attributes
|
abstract NetworkFile |
getFile(String netPath)
Return a network file for reading/writing the pseudo file
|
abstract FileInfo |
getFileInfo()
Return the file information for the pseudo file
|
String |
getFileName()
Return the pseudo file name as it will appear in folder listings
|
protected FileInfo |
getInfo()
Return the file information
|
boolean |
isDirectory()
Check if the pseudo file is a folder
|
boolean |
isFile()
Check if the pseudo file is a file
|
boolean |
isHidden()
Check if the pseudo file is hidden
|
boolean |
isReadOnly()
Check if the pseudo file is read-only
|
protected void |
setFileInfo(FileInfo finfo)
Set the file information
|
String |
toString()
Return the pseudo file as a string
|
protected PseudoFile(String name)
name
- Stringprotected PseudoFile(String name, int flags)
name
- Stringflags
- intpublic final String getFileName()
public final int getAttributes()
public final boolean isFile()
public final boolean isDirectory()
public final boolean isReadOnly()
public final boolean isHidden()
public abstract FileInfo getFileInfo()
public abstract NetworkFile getFile(String netPath)
netPath
- Stringprotected final void setFileInfo(FileInfo finfo)
finfo
- FileInfoprotected final FileInfo getInfo()
Copyright © 2005–2017 Alfresco Software. All rights reserved.