edu.cmu.minorthird.util
Interface Saveable

All Known Implementing Classes:
BasicCommandLineProcessor, BasicDataset, BasicTextLabels, ClassifyCommandLineUtil, ClassifyCommandLineUtil.BaseParams, ClassifyCommandLineUtil.Learner, ClassifyCommandLineUtil.Learner.ClassifierLearner, ClassifyCommandLineUtil.Learner.SequentialLearner, ClassifyCommandLineUtil.MultiTestParams, ClassifyCommandLineUtil.MultiTrainParams, ClassifyCommandLineUtil.MultiTrainTestParams, ClassifyCommandLineUtil.SeqTestParams, ClassifyCommandLineUtil.SeqTrainParams, ClassifyCommandLineUtil.SeqTrainTestParams, ClassifyCommandLineUtil.SimpleTestParams, ClassifyCommandLineUtil.SimpleTrainParams, ClassifyCommandLineUtil.SimpleTrainTestParams, ClassifyCommandLineUtil.TestParams, ClassifyCommandLineUtil.TrainParams, ClassifyCommandLineUtil.TrainTestParams, CommandLineUtil.AnnotatorOutputParams, CommandLineUtil.BaseParams, CommandLineUtil.ClassificationSignalParams, CommandLineUtil.EditParams, CommandLineUtil.ExtractionSignalParams, CommandLineUtil.GUIParams, CommandLineUtil.LoadAnnotatorParams, CommandLineUtil.MixupParams, CommandLineUtil.MultiClassificationSignalParams, CommandLineUtil.OnlineBaseParams, CommandLineUtil.OnlineLearnerParams, CommandLineUtil.OnlineSignalParams, CommandLineUtil.SaveParams, CommandLineUtil.SplitterParams, CommandLineUtil.TaggerSignalParams, CommandLineUtil.TestClassifierParams, CommandLineUtil.TestExtractorParams, CommandLineUtil.TrainClassifierParams, CommandLineUtil.TrainExtractorParams, CommandLineUtil.TrainTaggerParams, CommandLineUtil.ViewLabelsParams, CoreRelationalDataset, Evaluation, EvaluationGroup, ExtractorNameMatcher.MyCLP, ExtractorTweaker.MyCLP, LabeledDirectory.MyCLP, MultiDataset, PreprocessTextForClassifier.LinkFileParams, PreprocessTextForExtractor.ExtractionReductionParams, RandomAccessDataset, RankingEvaluation, RankingEvaluation.MyCLP, RankingExpt.MyCLP, RealRelationalDataset, Recommended.HMMTokenFE.MyCLP, Recommended.MultitokenSpanFE.MyCLP, Recommended.TokenFE.MyCLP, SemiSupervisedDataset, SequenceDataset, SpanDifference.Invoker, Test.DataClassificationTask.GUIParams, Train.DataClassificationTask.GUIParams, TrainTest.DataClassificationTask.GUIParams, UI.DataClassificationTask.GUIParams

public interface Saveable

Interface for classes that can be saved to disk in one or more class-specific, human-readable format. The format is determined by file extensions.


Method Summary
 java.lang.String getExtensionFor(java.lang.String formatName)
          Recomended extension for the format with the given name.
 java.lang.String[] getFormatNames()
          List of formats in which the object can be saved.
 java.lang.Object restore(java.io.File file)
          Restore the object from a file.
 void saveAs(java.io.File file, java.lang.String formatName)
          Save this object to the given file, in the given format.
 

Method Detail

getFormatNames

java.lang.String[] getFormatNames()
List of formats in which the object can be saved.


getExtensionFor

java.lang.String getExtensionFor(java.lang.String formatName)
Recomended extension for the format with the given name.


saveAs

void saveAs(java.io.File file,
            java.lang.String formatName)
            throws java.io.IOException
Save this object to the given file, in the given format.

Throws:
java.io.IOException

restore

java.lang.Object restore(java.io.File file)
                         throws java.io.IOException
Restore the object from a file.

Throws:
java.io.IOException