Package org.onebusaway.gtfs.impl
Class ZipHandler
- java.lang.Object
-
- org.onebusaway.gtfs.impl.ZipHandler
-
public class ZipHandler extends Object
Zip file support.
-
-
Field Summary
Fields Modifier and Type Field Description static StringZIP_SCHEME
-
Constructor Summary
Constructors Constructor Description ZipHandler(File zipFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringreadTextFromFile(String fileInZip)read metadata files from a text file.voidwriteTextToFile(String fileInZip, String content)write metatdata files to an existing zip file.
-
-
-
Field Detail
-
ZIP_SCHEME
public static final String ZIP_SCHEME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ZipHandler
public ZipHandler(File zipFile)
-
-
Method Detail
-
readTextFromFile
public String readTextFromFile(String fileInZip) throws IOException
read metadata files from a text file.- Parameters:
fileInZip-- Returns:
- Throws:
IOException
-
writeTextToFile
public void writeTextToFile(String fileInZip, String content) throws IOException
write metatdata files to an existing zip file.- Parameters:
fileInZip-content-- Throws:
IOException
-
-