com.planet_ink.coffee_web.interfaces.FileManagerpublic static class CMFile.CMFileManager
extends java.lang.Object
implements com.planet_ink.coffee_web.interfaces.FileManager
| Constructor | Description | 
|---|---|
| CMFileManager() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | allowedToReadData(java.io.File file) | Returns true if the file exists and is readable and meets any other
 criteria the manager desires before deciding whether to allow reading. | 
| java.io.File | createFileFromPath(java.io.File parent,
                  java.lang.String localPath) | Create a file object from the given local path | 
| java.io.File | createFileFromPath(java.lang.String localPath) | Create a file object from the given local path | 
| char | getFileSeparator() | Return the appropriate file separator for this fs | 
| java.io.InputStream | getFileStream(java.io.File file) | Return a readable input stream of the given files data | 
| java.io.RandomAccessFile | getRandomAccessFile(java.io.File file) | Return a readable input stream of the given files data | 
| byte[] | readFile(java.io.File file) | Read the data out out of the given file | 
| boolean | supportsRandomAccess(java.io.File file) | Returns whether the given file can be randomly accessed | 
public char getFileSeparator()
com.planet_ink.coffee_web.interfaces.FileManagergetFileSeparator in interface com.planet_ink.coffee_web.interfaces.FileManagerpublic java.io.File createFileFromPath(java.lang.String localPath)
com.planet_ink.coffee_web.interfaces.FileManagercreateFileFromPath in interface com.planet_ink.coffee_web.interfaces.FileManagerlocalPath - the path c:\dljl\sdf\ format.public java.io.File createFileFromPath(java.io.File parent,
                                       java.lang.String localPath)
com.planet_ink.coffee_web.interfaces.FileManagercreateFileFromPath in interface com.planet_ink.coffee_web.interfaces.FileManagerparent - the parent path c:\dljl\sdf\ format.localPath - the path c:\dljl\sdf\ format.public byte[] readFile(java.io.File file)
                throws java.io.IOException,
                       java.io.FileNotFoundException
com.planet_ink.coffee_web.interfaces.FileManagerreadFile in interface com.planet_ink.coffee_web.interfaces.FileManagerfile - the file to readjava.io.IOException - a read errorjava.io.FileNotFoundException - the file was not foundpublic java.io.InputStream getFileStream(java.io.File file)
                                  throws java.io.IOException,
                                         java.io.FileNotFoundException
com.planet_ink.coffee_web.interfaces.FileManagergetFileStream in interface com.planet_ink.coffee_web.interfaces.FileManagerfile - the file to readjava.io.IOException - a read errorjava.io.FileNotFoundException - the file was not foundpublic java.io.RandomAccessFile getRandomAccessFile(java.io.File file)
                                             throws java.io.IOException,
                                                    java.io.FileNotFoundException
com.planet_ink.coffee_web.interfaces.FileManagergetRandomAccessFile in interface com.planet_ink.coffee_web.interfaces.FileManagerfile - the file to readjava.io.IOException - a read errorjava.io.FileNotFoundException - the file was not foundpublic boolean supportsRandomAccess(java.io.File file)
com.planet_ink.coffee_web.interfaces.FileManagersupportsRandomAccess in interface com.planet_ink.coffee_web.interfaces.FileManagerfile - the filemanager file to check for random access support.public boolean allowedToReadData(java.io.File file)
com.planet_ink.coffee_web.interfaces.FileManagerallowedToReadData in interface com.planet_ink.coffee_web.interfaces.FileManagerfile - the file from this manager to check