File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
src/main/java/scriptmanager/util Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -101,17 +101,10 @@ public static BufferedReader makeReader(File f) throws IOException{
101101 * @throws IOException Invalid file
102102 */
103103 public static PrintStream makePrintStream (File o , boolean gzip ) throws IOException {
104- if (!ExtensionFileFilter .getExtension (o ).equals ("gz" ) && gzip ){
105- o = new File (o .getCanonicalPath () + ".gz" );
106- }
107- else if (ExtensionFileFilter .getExtension (o ).equals ("gz" ) && !gzip ) {
108- o = new File (ExtensionFileFilter .stripExtension (o ));
109- }
110104 if (gzip ){
111105 return new PrintStream (new BufferedOutputStream (new GZIPOutputStream (new FileOutputStream (o ))));
112106 } else {
113107 return new PrintStream (new BufferedOutputStream (new FileOutputStream (o )));
114108 }
115-
116109 }
117110}
You can’t perform that action at this time.
0 commit comments