public class FastPushbackBufferedReader extends BufferedReader implements FastPushbackReader
All custom writers for json-io subclass this class. Special writers are not needed for handling user-defined classes. However, special writers are built/supplied by json-io for many of the primitive types and other JDK classes simply to allow for a more concise form.
Copyright (c) Cedar Software LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.*
Constructor and Description |
---|
FastPushbackBufferedReader(Reader reader) |
Modifier and Type | Method and Description |
---|---|
String |
getLastSnippet() |
int |
read() |
void |
unread(int c) |
close, lines, mark, markSupported, read, readLine, ready, reset, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCol, getLine
public FastPushbackBufferedReader(Reader reader)
public String getLastSnippet()
getLastSnippet
in interface FastPushbackReader
public int read() throws IOException
read
in interface FastPushbackReader
read
in class BufferedReader
IOException
public void unread(int c) throws IOException
unread
in interface FastPushbackReader
IOException
Copyright © 2023. All rights reserved.