You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@orc.apache.org by "David Mollitor (Jira)" <ji...@apache.org> on 2021/07/16 03:25:00 UTC
[jira] [Created] (ORC-850) Use PushbackReader Instead of
BufferedReader
David Mollitor created ORC-850:
----------------------------------
Summary: Use PushbackReader Instead of BufferedReader
Key: ORC-850
URL: https://issues.apache.org/jira/browse/ORC-850
Project: ORC
Issue Type: Improvement
Reporter: David Mollitor
Assignee: David Mollitor
{{commons-csv}} uses, as its base {{Reader}} a {{BufferedReader}}, however the more natural choice is {{PushBackReader}}.
{quote}
This is useful in situations where it is convenient for a fragment of code to read an indefinite number of data bytes that are delimited by a particular byte value; after reading the terminating byte, the code fragment can "unread" it, so that the next read operation on the input stream will reread the byte that was pushed back. For example, bytes representing the characters constituting an identifier might be terminated by a byte representing an operator character; a method whose job is to read just an identifier can read until it sees the operator and then push the operator back to be re-read.
{quote}
https://docs.oracle.com/javase/8/docs/api/java/io/PushbackInputStream.html
--
This message was sent by Atlassian Jira
(v8.3.4#803005)