Mercurial > projects > dwt2
diff java/src/java/util/zip/InflaterInputStream.d @ 8:2847134a5fc0
more tango abstraction
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 05 Mar 2009 15:12:35 +0100 |
parents | 6dd524f61e62 |
children | 735224fcc45f |
line wrap: on
line diff
--- a/java/src/java/util/zip/InflaterInputStream.d Thu Mar 05 00:21:10 2009 +0100 +++ b/java/src/java/util/zip/InflaterInputStream.d Thu Mar 05 15:12:35 2009 +0100 @@ -12,11 +12,8 @@ pragma(link,"zlib"); } } -version(TANGOSVN){ - import tango.io.device.Conduit; -} else { - import tango.io.Conduit; -} + +import tango.io.device.Conduit; class InputStreamWrapper : tango.io.model.IConduit.InputStream { @@ -30,15 +27,9 @@ int res = istr.read( cast(byte[])dst ); return res; } - void[] load (void[] dst = null) { - return Conduit.load (this, dst); - } - - tango.io.model.IConduit.InputStream clear (){ - return this; - } tango.io.model.IConduit.IConduit conduit (){ + implMissing(__FILE__,__LINE__); return null; } @@ -46,11 +37,21 @@ istr.close(); } tango.io.model.IConduit.InputStream input (){ + implMissing(__FILE__,__LINE__); return null; } long seek (long offset, Anchor anchor = Anchor.Begin){ + implMissing(__FILE__,__LINE__); return 0; } + void[] load (size_t max = -1){ + implMissing(__FILE__,__LINE__); + return null; + } + IOStream flush (){ + implMissing(__FILE__,__LINE__); + return null; + } } public class InflaterInputStream : java.io.InputStream.InputStream {