Пример #1
0
 void encoderClose() {
   if (encoder != null && this.outputStream != null) {
     try {
       encoder.close();
     } catch (IOException ioe) {
       this.started = false;
       addStatus(
           new ErrorStatus(
               "Failed to write footer for appender named [" + name + "].", this, ioe));
     }
   }
 }
Пример #2
0
 void encoderInit() {
   if (encoder != null && this.outputStream != null) {
     try {
       encoder.init(outputStream);
     } catch (IOException ioe) {
       this.started = false;
       addStatus(
           new ErrorStatus(
               "Failed to initialize encoder for appender named [" + name + "].", this, ioe));
     }
   }
 }