public abstract class PCCFileSystem extends FileSystem
Modifier and Type | Class and Description |
---|---|
protected class |
PCCFileSystem.PCCFileEntry |
Modifier and Type | Field and Description |
---|---|
int |
baseOffset |
int |
numFiles |
String |
pccDescription |
String |
pccVersion |
altFileNames, fileChooser, FNAME_CONVERTIBLE_CHARS, FS, FSCH, isURL, ISURL, rb, root, WINFS, WINFSCH
Constructor and Description |
---|
PCCFileSystem(ResourceBridge rb) |
PCCFileSystem(String rootPath,
String pccFileName,
ResourceBridge rb) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static PCCFileSystem |
createPCCFileSystem(String rootPath,
String pccFileName,
ResourceBridge rb) |
String |
extractLine(BufferedReader bfr) |
String |
extractLineFromDIS(DataInputStream dis) |
int |
extractShortInt(DataInputStream bfr) |
long |
extractShortLong(DataInputStream bfr) |
String |
extractSzString(BufferedReader bfr) |
String |
extractSzString(DataInputStream dis) |
protected abstract byte[] |
getBytes(int entryNum) |
byte[] |
getBytes(String fileName) |
DataInputStream |
getDataInputStream(String fName) |
String |
getEntryInfo(int n) |
String |
getEntryName(int n) |
int |
getEntryNum(String fName) |
long |
getFileLength(String fileName) |
String |
getFullRoot() |
Image |
getImageFile(String fName) |
buildDoc, changeBase, chooseFile, chooseFiles, createFileSystem, createFileSystem, createSecureFileOutputStream, duplicate, exploreFiles, fileExists, finalize, getCanonicalNameOf, getCanonicalNameOf, getExtendedByteArrayInputStream, getFileChooser, getFileNameOf, getFullFileNamePath, getInputStream, getMediaDataSource, getPathPartOf, getRelativeFileNamePath, getUrl, getValidFileName, getXMLDocument, getXMLDocument, isStrUrl, isUrlBased, open, stdFn, sysFn
public String pccVersion
public String pccDescription
public int numFiles
public int baseOffset
public PCCFileSystem(ResourceBridge rb)
public PCCFileSystem(String rootPath, String pccFileName, ResourceBridge rb)
public static PCCFileSystem createPCCFileSystem(String rootPath, String pccFileName, ResourceBridge rb) throws Exception
Exception
public String getFullRoot()
getFullRoot
in class FileSystem
public String getEntryInfo(int n)
public String getEntryName(int n)
public int getEntryNum(String fName)
protected abstract byte[] getBytes(int entryNum) throws IOException
IOException
public byte[] getBytes(String fileName) throws IOException
getBytes
in class FileSystem
IOException
public long getFileLength(String fileName) throws IOException
getFileLength
in class FileSystem
IOException
public Image getImageFile(String fName) throws Exception
getImageFile
in class FileSystem
Exception
public DataInputStream getDataInputStream(String fName) throws IOException
IOException
public String extractLine(BufferedReader bfr) throws IOException
IOException
public String extractLineFromDIS(DataInputStream dis) throws IOException
IOException
public String extractSzString(BufferedReader bfr) throws IOException
IOException
public String extractSzString(DataInputStream dis) throws IOException
IOException
public int extractShortInt(DataInputStream bfr) throws IOException
IOException
public long extractShortLong(DataInputStream bfr) throws IOException
IOException
public void close()
close
in class FileSystem
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.