org.apache.commons.io.input.ReversedLinesFileReader

'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
         // http://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

 About This Book

 Reference Citations in 2016

 Reference Citations in 2015

Reference Citations in 2014

org.apache.commons.io.input.ReversedLinesFileReader

 Node.js and openSSL

 MD5 算法在 Java 语言

 Rpc Encoded requires encodingStyle on body #12

 Java 操作 Oracle CLOB 字段

 Conjunto de resultados

 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 ...

 Ruby Driver 1.0 for Apache Cassandra Documentation

 Reference Citations in 2013

 Reference Citations in 2012

 Reference Citations in 2011

 Reference Citations in 2010

 Reference Citations in 2009

 Reference Citations in 2008

 Reference Citations in 2007

 Reference Citations in 2006

 Reference Citations in 2005

 Reference Citations in 2004

 Reference Citations in 2003

 PDF Printing Version