}
if (bytes!=null) {
diOs.write(bytes);
return;
} else if (_inputOctetStreamProxy==null) {
CanonicalizerBase c14nizer = null;
if (c14n11) {
c14nizer = new Canonicalizer11_OmitComments();
} else {
c14nizer = new Canonicalizer20010315OmitComments();
}
c14nizer.setWriter(diOs);
c14nizer.engineCanonicalize(this);
return;
} else {
InputStream is = getResetableInputStream();
if (bytes!=null) {
//already read write it, can be rea.