public CBORParser constructParser(int factoryFeatures, int generalParserFeatures, int formatFeatures, ObjectCodec codec, ByteQuadsCanonicalizer rootByteSymbols) throws IOException, JsonParseException { ByteQuadsCanonicalizer can = rootByteSymbols.makeChild(factoryFeatures); // We just need a single byte to recognize possible "empty" document. ensureLoaded(1); CBORParser p = new CBORParser(_context, generalParserFeatures, formatFeatures, codec, can, _in, _inputBuffer, _inputPtr, _inputEnd, _bufferRecyclable); if (_inputPtr < _inputEnd) { // only false for empty doc ; // anything we should verify? In future, could verify } else { /* 13-Jan-2014, tatu: Actually, let's allow empty documents even if * header signature would otherwise be needed. This is useful for * JAX-RS provider, empty PUT/POST payloads? */ ; } return p; }
public CBORParser constructParser(int factoryFeatures, int generalParserFeatures, int formatFeatures, ObjectCodec codec, ByteQuadsCanonicalizer rootByteSymbols) throws IOException, JsonParseException { ByteQuadsCanonicalizer can = rootByteSymbols.makeChild(factoryFeatures); // We just need a single byte to recognize possible "empty" document. ensureLoaded(1); CBORParser p = new CBORParser(_context, generalParserFeatures, formatFeatures, codec, can, _in, _inputBuffer, _inputPtr, _inputEnd, _bufferRecyclable); if (_inputPtr < _inputEnd) { // only false for empty doc ; // anything we should verify? In future, could verify } else { /* 13-Jan-2014, tatu: Actually, let's allow empty documents even if * header signature would otherwise be needed. This is useful for * JAX-RS provider, empty PUT/POST payloads? */ ; } return p; }
public CBORParser constructParser(int factoryFeatures, int generalParserFeatures, int formatFeatures, ObjectCodec codec, ByteQuadsCanonicalizer rootByteSymbols) throws IOException, JsonParseException { ByteQuadsCanonicalizer can = rootByteSymbols.makeChild(factoryFeatures); // We just need a single byte to recognize possible "empty" document. ensureLoaded(1); CBORParser p = new CBORParser(_context, generalParserFeatures, formatFeatures, codec, can, _in, _inputBuffer, _inputPtr, _inputEnd, _bufferRecyclable); if (_inputPtr < _inputEnd) { // only false for empty doc ; // anything we should verify? In future, could verify } else { /* 13-Jan-2014, tatu: Actually, let's allow empty documents even if * header signature would otherwise be needed. This is useful for * JAX-RS provider, empty PUT/POST payloads? */ ; } return p; }