ch.qos.logback.core.encoder.Encoder.footerBytes()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(153)

本文整理了Java中ch.qos.logback.core.encoder.Encoder.footerBytes()方法的一些代码示例,展示了Encoder.footerBytes()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Encoder.footerBytes()方法的具体详情如下:
包路径:ch.qos.logback.core.encoder.Encoder
类名称:Encoder
方法名:footerBytes

Encoder.footerBytes介绍

[英]Get footer bytes. This method is typically called prior to the closing of the stream where events are written.
[中]获取页脚字节。此方法通常在写入事件的流关闭之前调用。

代码示例

代码示例来源:origin: tony19/logback-android

void encoderClose() {
 if (encoder != null && this.outputStream != null) {
  try {
   byte[] footer = encoder.footerBytes();
   writeBytes(footer);
  } catch (IOException ioe) {
   this.started = false;
   addStatus(new ErrorStatus("Failed to write footer for appender named ["
     + name + "].", this, ioe));
  }
 }
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

void encoderClose() {
  if (encoder != null && this.outputStream != null) {
    try {
      byte[] footer = encoder.footerBytes();
      writeBytes(footer);
    } catch (IOException ioe) {
      this.started = false;
      addStatus(new ErrorStatus("Failed to write footer for appender named [" + name + "].", this, ioe));
    }
  }
}

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

void encoderClose() {
  if (encoder != null && this.outputStream != null) {
    try {
      byte[] footer = encoder.footerBytes();
      writeBytes(footer);
    } catch (IOException ioe) {
      this.started = false;
      addStatus(new ErrorStatus("Failed to write footer for appender named [" + name + "].", this, ioe));
    }
  }
}

代码示例来源:origin: Nextdoor/bender

void encoderClose() {
  if (encoder != null && this.outputStream != null) {
    try {
      byte[] footer = encoder.footerBytes();
      writeBytes(footer);
    } catch (IOException ioe) {
      this.started = false;
      addStatus(new ErrorStatus("Failed to write footer for appender named [" + name + "].", this, ioe));
    }
  }
}

相关文章