@Override public void write(Message[] msgLines, int from, int max) throws IOException { String[] lines = new String[max]; for (int i = from; i < max; i++) { lines[i] = MessageUtil.toBase64(msgLines[i]); } wal.write(lines); }
@Override public void write(WeakReference<? extends Message>[] msgLines, int from, int max) throws IOException { String[] lines = new String[max]; for (int i = from; i < max; i++) { lines[i] = MessageUtil.toBase64(msgLines[i].get()); } wal.write(lines); }
@Override public void write(Message line) throws IOException { wal.write(MessageUtil.toBase64(line)); }