01: // Copyright (c) 2001 Per M.A. Bothner and Brainfood Inc.
02: // This is free software; for terms and warranty disclaimer see ./COPYING.
03:
04: package gnu.lists;
05:
06: /** An object like a Format, but for writing to a Consumer. */
07:
08: public interface FormatToConsumer {
09: //We should add more methods here. FIXME.
10: //public void writeChar(int v, Consumer out);
11: public void writeBoolean(boolean v, Consumer out);
12:
13: public void beginGroup(String typeName, Object type, Consumer out);
14:
15: public void endGroup(String typeName, Consumer out);
16:
17: public void writeObject(Object v, Consumer out);
18: }
|