From: Jussi Koskela Date: Mon, 21 Nov 2016 12:53:42 +0000 (+0200) Subject: Possibility to skip bytes when reading InputStream in SCL X-Git-Tag: v1.25.0~42 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F154%2F1;p=simantics%2Fplatform.git Possibility to skip bytes when reading InputStream in SCL Lift InputStream.skip() to SCL API. refs #6821 Change-Id: I2462d9474b4eedb5010deb8737cccb507905ba11 --- diff --git a/bundles/org.simantics.scl.runtime/scl/Stream.scl b/bundles/org.simantics.scl.runtime/scl/Stream.scl index cd0d4588a..150d55e6c 100644 --- a/bundles/org.simantics.scl.runtime/scl/Stream.scl +++ b/bundles/org.simantics.scl.runtime/scl/Stream.scl @@ -12,6 +12,7 @@ importJava "java.io.InputStream" where @private @JavaName close closeInputStream :: InputStream -> () + skip :: InputStream -> Long -> Long instance Closeable InputStream where close = closeInputStream