comparison dwt/internal/image/LEDataOutputStream.d @ 213:36f5cb12e1a2

Update to SWT 3.4M7
author Frank Benoit <benoit@tionex.de>
date Sat, 17 May 2008 17:34:28 +0200
parents 9a64a7781bab
children
comparison
equal deleted inserted replaced
212:ab60f3309436 213:36f5cb12e1a2
1 /******************************************************************************* 1 /*******************************************************************************
2 * Copyright (c) 2000, 2005 IBM Corporation and others. 2 * Copyright (c) 2000, 2005 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials 3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0 4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at 5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html 6 * http://www.eclipse.org/legal/epl-v10.html
14 14
15 15
16 import dwt.dwthelper.OutputStream; 16 import dwt.dwthelper.OutputStream;
17 17
18 final class LEDataOutputStream : OutputStream { 18 final class LEDataOutputStream : OutputStream {
19
19 alias OutputStream.write write; 20 alias OutputStream.write write;
21
20 OutputStream ostr; 22 OutputStream ostr;
23
21 public this(OutputStream output) { 24 public this(OutputStream output) {
22 this.ostr = output; 25 this.ostr = output;
23 } 26 }
24 /** 27 /**
25 * Write the specified number of bytes of the given byte array, 28 * Write the specified number of bytes of the given byte array,
26 * starting at the specified offset, to the output stream. 29 * starting at the specified offset, to the output stream.
27 */ 30 */
28 override public void write(byte b[], int off, int len) { 31 public override void write(byte b[], int off, int len) {
29 ostr.write(b, off, len); 32 ostr.write(b, off, len);
30 } 33 }
31 /** 34 /**
32 * Write the given byte to the output stream. 35 * Write the given byte to the output stream.
33 */ 36 */
34 override public void write(int b) { 37 public override void write(int b) {
35 ostr.write(b); 38 ostr.write(b);
36 } 39 }
37 /** 40 /**
38 * Write the given byte to the output stream. 41 * Write the given byte to the output stream.
39 */ 42 */