• mevenson@1c010e3e-69d0-11dd-93a8-456734b0d56f's avatar
    [PATCH 5/5] Support `FILE-POSITION` on string streams. · 11e463d2
    From cb667c106187443ff2d00bace14f0ee0686fe2fd Mon Sep 17 00:00:00 2001
    Adds a custom, seekable writer to be able to go back in the written
    output for `STRING-OUTPUT-STREAM` - the input case is slightly less
    complex.
    ---
     build.xml                                          |   1 +
     src/org/armedbear/lisp/SeekableStringWriter.java   | 140 +++++++++++++++++++++
     src/org/armedbear/lisp/StringInputStream.java      |  43 ++++++-
     src/org/armedbear/lisp/StringOutputStream.java     |  35 +++++-
     test/lisp/abcl/misc-tests.lisp                     |  11 +-
     .../armedbear/lisp/SeekableStringWriterTest.java   |  19 +++
     6 files changed, 242 insertions(+), 7 deletions(-)
     create mode 100644 src/org/armedbear/lisp/SeekableStringWriter.java
     create mode 100644 test/src/org/armedbear/lisp/SeekableStringWriterTest.java
    11e463d2