Copyright (C) 2013-2015 Regents of the University of California.
- Jeff Thompson <email@example.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
A copy of the GNU Lesser General Public License is in the file COPYING.
Continue scanning input starting from offset_. If found the end of the element
which started at offset 0, then return true, else false.
If this returns true, then the element end is at getOffset().
If this returns false, you should read more into input and call again.
You have to pass in input each time because the array could be reallocated.
input The input buffer to read. This does not update its position().
- True if found the element end, false to read more input.
EncodingException For invalid encoding.
throw new Error("BinaryXMLStructureDecoder: Unexpected close tag at offset " + (offset_ - 1));
throw new EncodingException("BinaryXMLStructureDecoder: Unrecognized header type " + type);
Set the offset into the input, used for the next read.
offset The new offset.
When findElementEnd returns true, call this to get the element end.
- The position just past the element end.
Set the state to READ_HEADER_OR_CLOSE and set up to start reading the header.