示例#1
0
文件: LN.java 项目: bungaca/abstools
 /** @see LogReadable#readFromLog */
 public void readFromLog(ByteBuffer itemBuffer, byte entryTypeVersion) throws LogException {
   super.readFromLog(itemBuffer, entryTypeVersion);
   boolean dataExists = LogUtils.readBoolean(itemBuffer);
   if (dataExists) {
     data = LogUtils.readByteArray(itemBuffer);
   }
 }
示例#2
0
文件: LN.java 项目: bungaca/abstools
 /** @see LoggableObject#writeToLog */
 public void writeToLog(ByteBuffer logBuffer) {
   super.writeToLog(logBuffer);
   boolean dataExists = !isDeleted();
   LogUtils.writeBoolean(logBuffer, dataExists);
   if (dataExists) {
     LogUtils.writeByteArray(logBuffer, data);
   }
 }
示例#3
0
文件: LN.java 项目: bungaca/abstools
 /** @see LogReadable#dumpLog */
 public void dumpLog(StringBuffer sb, boolean verbose) {
   sb.append(beginTag());
   super.dumpLog(sb, verbose);
   if (data != null) {
     sb.append("<data>");
     sb.append(TreeUtils.dumpByteArray(data));
     sb.append("</data>");
   }
   dumpLogAdditional(sb, verbose);
   sb.append(endTag());
 }