Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.graylog2.syslog4j.server.impl.event.printstream;
 
 import java.io.File;
 
    private static final long serialVersionUID = -755824686809731430L;
    protected static PrintStream createPrintStream(String fileNameboolean appendthrows IOException {
        File file = new File(fileName);
        OutputStream os = new FileOutputStream(fileappend);
        PrintStream printStream = new PrintStream(os);
        return printStream;
    }
    public FileSyslogServerEventHandler(String fileNamethrows IOException {
        super(createPrintStream(fileNametrue));
    }
    public FileSyslogServerEventHandler(String fileNameboolean appendthrows IOException {
        super(createPrintStream(fileNameappend));
    }
New to GrepCode? Check out our FAQ X