question: private void writeHeader ( ) throws OpenStegoException { DCTDataHeader header = null ; try { header = new DCTDataHeader ( this . dataLength , this . fileName , this . config ) ; if ( ( ( header . getHeaderSize ( ) + this . dataLength ) * 8 ) > ( this . imgWidth * this . imgHeight / ( DCT . NJPEG * DCT . NJPEG ) ) ) { throw new OpenStegoException ( null , DctLSBPlugin . NAMESPACE , DctLSBErrors . IMAGE_SIZE_INSUFFICIENT ) ; } this . coord = new Coordinates ( ( header . getHeaderSize ( ) + this . dataLength ) * 8 ) ; write ( header . getHeaderData ( ) ) ; } catch ( IOException ioEx ) { throw new OpenStegoException ( ioEx ) ; } }
target:  Method to write header data to stream