RLPark 1.0.0
Reinforcement Learning Framework in Java

BZippedLogFile.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 zephyr.plugin.core.api.internal.bz2.CBZip2InputStream;
00009 
00010 public class BZippedLogFile extends LogFile {
00011   private CBZip2InputStream zfile;
00012 
00013   public BZippedLogFile(String filepath) throws IOException {
00014     super(filepath);
00015   }
00016 
00017   @SuppressWarnings("resource")
00018   @Override
00019   protected BufferedReader getReader(String filepath) throws IOException {
00020     FileInputStream finput;
00021     finput = new FileInputStream(filepath);
00022     zfile = new CBZip2InputStream(new BufferedInputStream(finput));
00023     return new BufferedReader(new InputStreamReader(zfile));
00024   }
00025 }
 All Classes Namespaces Files Functions Variables Enumerations
Zephyr
RLPark