org.erights.e.meta.java.io
Class FileGetter

java.lang.Object
  |
  +--org.erights.e.elib.serial.BaseLoader
        |
        +--org.erights.e.meta.java.io.FileGetter
All Implemented Interfaces:
Loader, Uncaller

public class FileGetter
extends BaseLoader

Untamed: In E, "file:" is bound to the FileGetter, which uses the file system.

To use the URLGetter for "file:" urls, use "fileUrl:" instead.

Author:
Mark S. Miller
See Also:
org.erights.e.elang.interp.URLGetter

Field Summary
static FileGetter THE_ONE
          Enabled:
 
Constructor Summary
private FileGetter()
           
 
Method Summary
 Object get(String uriBody)
          Enabled:
static String normalize(String optPath)
          Enabled: Turn it into an E-normalized file name.
 Object[] optUncall(Object obj)
          Enabled:
private static String slash(String path)
          The repeated part
 
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

THE_ONE

public static final FileGetter THE_ONE
Enabled:

Constructor Detail

FileGetter

private FileGetter()
Method Detail

get

public Object get(String uriBody)
Enabled:


optUncall

public Object[] optUncall(Object obj)
Enabled:

Returns:
:nullOk([any, String, any[]]); either null or a 3-element list of
  • a receiver object whose reconstruction would receive the message
  • a String, which is the name of the message to call
  • a list of arguments, whose reconstruction are the actual arguments to the call.

slash

private static String slash(String path)
The repeated part


normalize

public static String normalize(String optPath)
Enabled: Turn it into an E-normalized file name. This uses "/" for the separator (Unix style), is absolute, and ends in a "/" if the path names a directory. An initial "~/" is expanded using the System property "user.home", assuming this is the user's home directory.



comments?