diff --git a/src/de/inetsoftware/jwebassembly/binary/WasmOutputStream.java b/src/de/inetsoftware/jwebassembly/binary/WasmOutputStream.java index a8bedc9..b5ed845 100644 --- a/src/de/inetsoftware/jwebassembly/binary/WasmOutputStream.java +++ b/src/de/inetsoftware/jwebassembly/binary/WasmOutputStream.java @@ -264,17 +264,4 @@ class WasmOutputStream extends LittleEndianOutputStream { writeVaruint32( size ); baos.writeTo( this ); } - - /** - * Write the data of this stream to the output. Work only for in memory stream. - * - * @param output - * the target - * @throws IOException - * if any I/O error occur - */ - void writeTo( OutputStream output ) throws IOException { - ByteArrayOutputStream baos = (ByteArrayOutputStream)out; - baos.writeTo( output ); - } } diff --git a/src/de/inetsoftware/jwebassembly/wasm/LittleEndianOutputStream.java b/src/de/inetsoftware/jwebassembly/wasm/LittleEndianOutputStream.java index aba4de0..34cf79e 100644 --- a/src/de/inetsoftware/jwebassembly/wasm/LittleEndianOutputStream.java +++ b/src/de/inetsoftware/jwebassembly/wasm/LittleEndianOutputStream.java @@ -79,6 +79,19 @@ public class LittleEndianOutputStream extends FilterOutputStream { write( value >>> 24 ); } + /** + * Write the data of this stream to the output. Work only for in memory stream. + * + * @param output + * the target + * @throws IOException + * if any I/O error occur + */ + public void writeTo( OutputStream output ) throws IOException { + ByteArrayOutputStream baos = (ByteArrayOutputStream)out; + baos.writeTo( output ); + } + /** * The count of bytes in the stream. *