|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.loconet.spjfile.SpjFile
public class SpjFile
Provide tools for reading, writing and accessing Digitrax SPJ files.
Four-byte quantities in SPJ files are little-endian.
| Nested Class Summary | |
|---|---|
class |
SpjFile.Header
Class representing a header record |
| Constructor Summary | |
|---|---|
SpjFile(File file)
|
|
| Method Summary | |
|---|---|
void |
dispose()
|
SpjFile.Header |
findSdfHeader()
|
String |
getComment()
|
SpjFile.Header |
getHeader(int index)
|
String |
getMapEntry(int i)
Find the map entry (character string) that corresponds to a particular handle number |
int |
numHeaders()
Number of headers present in the file. |
void |
read()
Read the file whose name was provided earlier |
void |
save(String name)
Save this file. |
void |
writeSubFiles()
Write data from headers into separate files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpjFile(File file)
| Method Detail |
|---|
public int numHeaders()
public String getComment()
public SpjFile.Header getHeader(int index)
public SpjFile.Header findSdfHeader()
public String getMapEntry(int i)
public void save(String name)
throws IOException
IOException - if anything goes wrong
public void read()
throws IOException
IOException
public void writeSubFiles()
throws IOException
IOExceptionpublic void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||