Changeset 15252


Ignore:
Timestamp:
04/20/20 05:35:59 (3 years ago)
Author:
Mark Evenson
Message:

Provide accessor in URL-STREAM for underlying java.io.InputStream?

(ql:quickload :prove)
(prove:run (asdf:system-relative-pathname :abcl "t/url-stream.lisp"))

Location:
trunk/abcl
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/URLStream.java

    r13440 r15252  
    4747 * Stream interface for a URL.
    4848 *
    49  * This only supports reading from the stream.
     49 * Currently only supports reading from the stream.
    5050 */
    5151public final class URLStream extends Stream
     
    118118    }
    119119
     120    // unused 20200418 ME
     121    public Reader getReader()
     122    {
     123        return reader;
     124    }
     125
     126    /**
     127     * Accessing the underlying java.io.InputStream can be helpful
     128     * when utlizing Java-side frameworks like Apache Jena built on
     129     * the java.io abstractions.  State should only be mutated if you
     130     * know what you are doing.
     131     *
     132     * c.f. <https://gitlab.common-lisp.net/mevenson/jeannie/>
     133     **/
     134    public InputStream getInputStream()
     135    {
     136        return input;
     137    }
     138
     139    // unused 20200418 ME
     140    public int getBytesPerUnit() {
     141        return bytesPerUnit;
     142    }
    120143    @Override
    121144    public void _close()
Note: See TracChangeset for help on using the changeset viewer.