|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elib.serial.BaseLoader | +--org.erights.e.meta.java.io.ReadOnlyFile
Untamed:
Field Summary | |
private boolean |
myIsTransitive
|
private File |
myPrecious
|
(package private) static long |
serialVersionUID
|
Fields inherited from interface org.erights.e.elib.serial.PassByProxy |
HONORARY, HONORED_NAMES |
Fields inherited from interface org.erights.e.elib.serial.Persistent |
HONORARY, HONORED_NAMES |
Constructor Summary | |
ReadOnlyFile(File file,
boolean isTransitive)
Enabled: |
Method Summary | |
void |
__printOn(TextWriter out)
Enabled: Normalize the E-printed form to use forward slashes as separators. |
boolean |
canRead()
Enabled: |
boolean |
canWrite()
Enabled: |
ReadOnlyFile |
deepReadOnly()
Enabled: |
boolean |
exists()
Enabled: |
Object |
get(String name)
Enabled: |
ReadOnlyFile |
getAbsoluteFile()
Enabled: |
String |
getAbsolutePath()
Enabled: |
ReadOnlyFile |
getCanonicalFile()
Enabled: |
String |
getCanonicalPath()
Enabled: |
String |
getName()
Enabled: |
String |
getParent()
Enabled: |
String |
getPath()
Enabled: |
String |
getPlatformPath()
Enabled: |
String |
getText()
Enabled: Gets the contents of the file as a String, normalizing newlines into '\n's. |
Twine |
getTwine()
Enabled: Gets the contents of the file as Twine (a text string that remembers where it came from), normalizing newlines into '\n's. |
boolean |
isAbsolute()
Enabled: |
boolean |
isDirectory()
Enabled: |
boolean |
isHidden()
Enabled: |
boolean |
isNormal()
Enabled: |
void |
iterate(AssocFunc func)
Enabled: If the file is a directory, enumerate filename => File associations for each child of the directory. |
void |
iterate(AssocFunc func,
boolean isLocated)
Enabled: If the file is a directory, enumerate filename => File associations for each child of the directory. |
long |
lastModified()
Enabled: |
long |
length()
Enabled: |
String[] |
list()
Enabled: |
String[] |
list(FilenameFilter filter)
Enabled: |
Object[] |
listFiles()
Enabled: |
Object[] |
listFiles(FilenameFilter filter)
Enabled: |
Object[] |
optUncall(Object obj)
Enabled: |
private Object[] |
protectFiles(File[] files)
|
ReadOnlyFile |
shallowReadOnly()
Enabled: |
BufferedReader |
textReader()
Enabled: Open 'self' for reading text, decoding UTF-8 and turning platform newlines into '\n's |
Methods inherited from class org.erights.e.elib.serial.BaseLoader |
getOptWrappingUncall, optUnget, ungetToUncall |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final long serialVersionUID
private final File myPrecious
private final boolean myIsTransitive
Constructor Detail |
public ReadOnlyFile(File file, boolean isTransitive)
Method Detail |
public ReadOnlyFile shallowReadOnly()
public ReadOnlyFile deepReadOnly()
public String getName()
public String getParent()
public String getPath()
public boolean isAbsolute()
public String getAbsolutePath()
public ReadOnlyFile getAbsoluteFile()
public String getCanonicalPath() throws IOException
IOException
public ReadOnlyFile getCanonicalFile() throws IOException
IOException
public String getPlatformPath()
public boolean canRead()
public boolean canWrite()
public boolean exists()
public boolean isDirectory()
public boolean isNormal()
public boolean isHidden()
public long lastModified()
public long length()
public String[] list()
public String[] list(FilenameFilter filter)
private Object[] protectFiles(File[] files)
public Object[] listFiles()
public Object[] listFiles(FilenameFilter filter)
public String getText() throws IOException
IOException
public Twine getTwine() throws IOException
IOException
public void iterate(AssocFunc func)
Otherwise assume it's a text file and enumerates lineNumber => String (text line) associations. Like Perl, each text line ends with a "\n".
iterate
in interface Iteratable
public void iterate(AssocFunc func, boolean isLocated) throws IOException
Otherwise assume it's a text file and enumerates lineNumber => String/Twine (text line) associations. Like Perl, each text line ends with a "\n".
IOException
public BufferedReader textReader() throws FileNotFoundException
FileNotFoundException
public Object get(String name)
get
in interface Loader
public Object[] optUncall(Object obj)
optUncall
in interface Uncaller
obj
-
public void __printOn(TextWriter out) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |