corina.files
Class TRML

java.lang.Object
  |
  +--corina.files.Filetype
        |
        +--corina.files.TRML

public class TRML
extends Filetype

TRML, my experimental Tree-Ring Markup Language.

It's long, it's ugly, it's probably fairly buggy, it has really lousy error handling, but it seems to work for the one file I've tested it on.

Version:
$Id: TRML.java,v 1.1 2002/12/17 23:46:48 bitpoet Exp $
Author:
Ken Harris

Fields inherited from class corina.files.Filetype
r, w
 
Constructor Summary
TRML()
           
 
Method Summary
 Sample load()
          Load a sample in TRML format.
 void save(Sample sample)
          Save a Sample to disk.
 String toString()
          Return the human-readable name of this file format.
 
Methods inherited from class corina.files.Filetype
leftPad, load, load, makeFiletype, save, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TRML

public TRML()
Method Detail

toString

public String toString()
Return the human-readable name of this file format.
Overrides:
toString in class Filetype
Returns:
the name of this file format

load

public Sample load()
            throws IOException
Load a sample in TRML format.
Overrides:
load in class Filetype
Parameters:
filename - file to load from
Returns:
Sample loaded from the file
Throws:
FileNotFoundException - if the file cannot be found
WrongFiletypeException - if the file is obviously not this filetype
IOException - if something goes wrong
See Also:
Sample

save

public void save(Sample sample)
          throws IOException
Save a Sample to disk.
Overrides:
save in class Filetype
Parameters:
s - the sample to save
Throws:
IOException - if an I/O exception occurs