Reference Citations - HerongYang.com - v2.95, by Herong Yang
org.apache.commons.io.input .ReversedLines FileReader
'Shift-JIS Encoding' tutorial was cited in an apache.org Commons Java source code in 2014.
The Shift-JIS Encoding tutorial was cited in an apache.org Commons Java source code in 2014.
Subject: org.apache.commons.io.input.ReversedLinesFileReader
Date: Jan 26, 2014
Author: apache
Source: http://commons.apache.org/proper/commons-io/apidocs/src-html
/org/apache/commons/io/input/ReversedLinesFileReader.html
package org.apache.commons.io.input;
...
/**
* Reads lines in a file reversely (similar to a BufferedReader, but
* starting at the last line). Useful for e.g. searching in log files.
*
* @since 2.2
*/
public class ReversedLinesFileReader implements Closeable {
...
if (maxBytesPerChar == 1f) {
// all one byte encodings are no problem
byteDecrement = 1;
} else if (charset == Charsets.UTF_8) {
// UTF-8 works fine out of the box, for multibyte sequences a
// second UTF-8 byte can never be a newline byte
// http://en.wikipedia.org/wiki/UTF-8
byteDecrement = 1;
} else if (charset == Charset.forName("Shift_JIS")) {
// Same as for UTF-8
// https://www.herongyang.com/Unicode/JIS-Shift-JIS-Encoding.html
byteDecrement = 1;
} else if (charset == Charsets.UTF_16BE
|| charset == Charsets.UTF_16LE) {
// UTF-16 new line sequences are not allowed as second tuple of
// four byte sequences,
// however byte order has to be specified
byteDecrement = 2;
...
Table of Contents
►org.apache.commons.io.input .ReversedLines FileReader
Rpc Encoded requires encodingStyle on body #12
Java Programming (Course Notes)
How to use nusoap to consume an online webservice?
Wireless Spontaneous Network Creation ...
MySQL prepared statement in Java not returning a value
All chocolatey commands come back as "/c: ..."
Hack Go – generate non-FIPS DSA key parameters...
How to take adb logcat, and store it in system?
Loose Coupling and Substitution Principle ...