import IndexOutOfBoundsException from '../IndexOutOfBoundsException' ; import NullPointerException from '../NullPointerException' ; author Arthur van Hoff
 *  see java . io . BufferedOutputStream see java . io . ByteArrayOutputStream see java . io . DataOutputStream see java . io . FilterOutputStream see java . io . InputStream see java . io . OutputStream since export default abstract class OutputStream { param b exception public abstract write ( b ) ; param b exception see java . io . OutputStream public writeBytes ( b ) { this . writeBytesOffset ( b , 0 , b . length ) ; } param b param off param len exception public writeBytesOffset ( b , off , len ) { if ( b == null ) { throw new NullPointerException ( ) ; } else if ( ( off < 0 ) || ( off > b . length ) || ( len < 0 ) || ( ( off + len ) > b . length ) || ( ( off + len ) < 0 ) ) { throw new IndexOutOfBoundsException ( ) ; } else if ( len === 0 ) { return ; } for ( let i = 0 ; i < len ; i ++ ) { this . write ( b [ off + i ] ) ; } } exception public flush ( ) { } exception public close ( ) { } }