RLPark 1.0.0
Reinforcement Learning Framework in Java

ZippedLogFile.java

Go to the documentation of this file.
00001 package zephyr.plugin.core.api.internal.logfiles;
00002 
00003 import java.io.BufferedInputStream;
00004 import java.io.BufferedReader;
00005 import java.io.FileInputStream;
00006 import java.io.IOException;
00007 import java.io.InputStreamReader;
00008 import java.util.zip.ZipInputStream;
00009 
00010 public class ZippedLogFile extends LogFile {
00011 
00012   private ZipInputStream zfile;
00013 
00014   public ZippedLogFile(String filepath) throws IOException {
00015     super(filepath);
00016   }
00017 
00018   @Override
00019   protected BufferedReader getReader(String filepath) throws IOException {
00020     FileInputStream finput = new FileInputStream(filepath);
00021     zfile = new ZipInputStream(new BufferedInputStream(finput));
00022     zfile.getNextEntry();
00023     return new BufferedReader(new InputStreamReader(zfile));
00024   }
00025 }
 All Classes Namespaces Files Functions Variables Enumerations
Zephyr
RLPark