Package ca.phon.alignedTypesDatabase
Class AlignedTypesDatabaseIO
java.lang.Object
ca.phon.alignedTypesDatabase.AlignedTypesDatabaseIO
Serialization methods
AlignedTypesDatabase
including compression.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AlignedTypesDatabase
readFromFile
(File dbFile) static AlignedTypesDatabase
readFromFile
(File dbFile, boolean compressed) static AlignedTypesDatabase
readFromFile
(String filename) static AlignedTypesDatabase
readFromFile
(String filename, boolean compressed) static void
writeToFile
(AlignedTypesDatabase db, File dbFile) static void
writeToFile
(AlignedTypesDatabase db, File dbFile, boolean compressed) static void
writeToFile
(AlignedTypesDatabase db, String filename) static void
writeToFile
(AlignedTypesDatabase db, String filename, boolean compressed)
-
Field Details
-
DB_EXT
Default extension for uncompressed database files- See Also:
-
DBZ_EXT
Default extension for compressed database files- See Also:
-
-
Constructor Details
-
AlignedTypesDatabaseIO
public AlignedTypesDatabaseIO()
-
-
Method Details
-
readFromFile
- Throws:
IOException
-
readFromFile
public static AlignedTypesDatabase readFromFile(String filename, boolean compressed) throws IOException - Throws:
IOException
-
readFromFile
- Throws:
IOException
-
readFromFile
- Throws:
IOException
-
writeToFile
- Throws:
IOException
-
writeToFile
public static void writeToFile(AlignedTypesDatabase db, String filename, boolean compressed) throws IOException - Throws:
IOException
-
writeToFile
- Throws:
IOException
-
writeToFile
public static void writeToFile(AlignedTypesDatabase db, File dbFile, boolean compressed) throws IOException - Throws:
IOException
-