You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.5 KiB
64 lines
1.5 KiB
/*
|
|
* Copyright (c) 2013 - present Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
package java.io;
|
|
|
|
import com.facebook.infer.builtins.InferUndefined;
|
|
|
|
public abstract class BufferedReader {
|
|
|
|
Reader mReader;
|
|
|
|
public BufferedReader(Reader in) {
|
|
mReader = in;
|
|
}
|
|
|
|
public BufferedReader(Reader in, int sz) {
|
|
mReader = in;
|
|
}
|
|
|
|
public int read() throws IOException {
|
|
return InferUndefined.can_throw_ioexception_int();
|
|
}
|
|
|
|
public int read(char cbuf[]) throws IOException {
|
|
return InferUndefined.can_throw_ioexception_int();
|
|
}
|
|
|
|
public int read(char[] cbuf, int off, int len) throws IOException {
|
|
return InferUndefined.can_throw_ioexception_int();
|
|
}
|
|
|
|
public String readLine() throws IOException {
|
|
return InferUndefined.can_throw_ioexception_string();
|
|
}
|
|
|
|
public boolean ready() throws IOException {
|
|
return InferUndefined.can_throw_ioexception_boolean();
|
|
}
|
|
|
|
public void reset() throws IOException {
|
|
InferUndefined.can_throw_ioexception_void();
|
|
}
|
|
|
|
public long skip(long n) throws IOException {
|
|
return InferUndefined.can_throw_ioexception_long();
|
|
}
|
|
|
|
public void close() {
|
|
try {
|
|
if (mReader != null) {
|
|
mReader.close();
|
|
}
|
|
} catch (Exception e) {
|
|
// Swallow exception
|
|
}
|
|
}
|
|
}
|