Package org.qdl_lang.vfs
Class FileEntries
- java.lang.Object
- 
- org.qdl_lang.vfs.FileEntries
 
- 
 public class FileEntries extends Object Created by Jeff Gaynor 
 on 2/19/20 at 6:19 AM
- 
- 
Constructor SummaryConstructors Constructor Description FileEntries()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddFile(net.sf.json.JSONObject config, String id, File file, int type)protected static voidaddFile(net.sf.json.JSONObject config, net.sf.json.JSONObject fileEntry)static voidaddFile(net.sf.json.JSONObject config, FileEntry fileEntry)static net.sf.json.JSONObjectcreateConfig()static FileEntryfileToEntry(File file, int type)static FileEntryfileToEntry(String path, int type)static FileEntryfromJSON(net.sf.json.JSONObject json)Take and entry from the library and return a file entry.static booleanisBinary(File f, int type)static FileEntrytoEntry(ZipEntry zipEntry, byte[] content, int type)static FileEntrytoEntryWithBinary(String id, File f)static FileEntrytoEntryWithInputStream(String id, File f)static net.sf.json.JSONObjecttoJSON(File f, int type)static net.sf.json.JSONObjecttoJSON(String id, File f, int type)static net.sf.json.JSONObjecttoJSON(FileEntry fileEntry)
 
- 
- 
- 
Field Detail- 
FILES_TAGpublic static String FILES_TAG 
 
- 
 - 
Method Detail- 
toJSONpublic static net.sf.json.JSONObject toJSON(FileEntry fileEntry) throws Throwable - Throws:
- Throwable
 
 - 
toEntrypublic static FileEntry toEntry(ZipEntry zipEntry, byte[] content, int type) throws Throwable - Throws:
- Throwable
 
 - 
toEntryWithInputStreampublic static FileEntry toEntryWithInputStream(String id, File f) throws Throwable - Throws:
- Throwable
 
 - 
toEntryWithBinarypublic static FileEntry toEntryWithBinary(String id, File f) throws Throwable - Throws:
- Throwable
 
 - 
toJSONpublic static net.sf.json.JSONObject toJSON(String id, File f, int type) throws Throwable - Throws:
- Throwable
 
 - 
toJSONpublic static net.sf.json.JSONObject toJSON(File f, int type) throws Throwable - Throws:
- Throwable
 
 - 
fileToEntrypublic static FileEntry fileToEntry(File file, int type) throws Throwable - Throws:
- Throwable
 
 - 
fileToEntrypublic static FileEntry fileToEntry(String path, int type) throws Throwable - Throws:
- Throwable
 
 - 
fromJSONpublic static FileEntry fromJSON(net.sf.json.JSONObject json) Take and entry from the library and return a file entry.- Parameters:
- json-
- Returns:
 
 - 
isBinarypublic static boolean isBinary(File f, int type) throws IOException - Throws:
- IOException
 
 - 
createConfigpublic static net.sf.json.JSONObject createConfig() 
 - 
addFilepublic static void addFile(net.sf.json.JSONObject config, String id, File file, int type) throws Throwable- Throws:
- Throwable
 
 - 
addFileprotected static void addFile(net.sf.json.JSONObject config, net.sf.json.JSONObject fileEntry) throws Throwable- Throws:
- Throwable
 
 
- 
 
-