private byte[] getContent() throws IOException, KSIException {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        header.writeTo(out);
        TLVStructure payload = getResponsePayload();
        if (payload != null) {
            payload.writeTo(out);
        } else {
            out.write(Util.toByteArray(0));
        }
        return out.toByteArray();
    }
private byte [ ] getContent ( ) throws IOException , KSIException { ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; header . writeTo ( out ) ; TLVStructure payload = getResponsePayload ( ) ; if ( payload != null ) { payload . writeTo ( out ) ; } else { out . write ( Util . toByteArray ( 0 ) ) ; } return out . toByteArray ( ) ; }
@return KSI protocol message bytes without MAC code.
@throws IOException
if IO error occurs.