1 23 24 28 50 package com.sun.jts.CosTransactions; 51 52 54 import java.io.*; 55 56 64 71 class LogRecordEnding implements Serializable { 72 74 final static int SIZEOF = LogLSN.SIZEOF; 75 76 78 LogLSN currentLSN = null; 79 80 88 LogRecordEnding() { 89 } 90 91 100 LogRecordEnding( byte[] bytes, 101 int index ) { 102 currentLSN = new LogLSN(bytes,index); 103 } 104 105 114 final int toBytes( byte[] bytes, 115 int index ) { 116 currentLSN.toBytes(bytes,index); 117 118 return SIZEOF; 119 } 120 121 129 public final String toString() { 130 return "LRE(curr="+currentLSN+")"; 131 } 132 } 133 | Popular Tags |