void sendDXR ( byte [ ] dxr8 ) throws IOException { if ( dxr8 == null || dxr8 . length == 0 ) return ; // do nothing if ( mode == RequestMode . DMR || mode == RequestMode . DSR ) { state = State . END ; } else { //mode == DATA // Prefix with chunk header int flags = DapUtil . CHUNK_DATA ; if ( this . writeorder == ByteOrder . LITTLE_ENDIAN ) flags |= DapUtil . CHUNK_LITTLE_ENDIAN ; chunkheader ( dxr8 . length , flags , this . header ) ; // write the header output . write ( DapUtil . extract ( this . header ) ) ; state = State . DATA ; } // write the DXR output . write ( dxr8 ) ; output . flush ( ) ; }
Output the specifiedd DMR or DSR or ... but xml only .