How to detect non-ASCII characters in string?

How to detect non-ASCII characters in string?
DeeKay April 6, 2012 at 1:51 am · java.nio

Below java shows how to detect non-ASCII characters in a String –


How to read file using FileChannel in java code?

How to read file using FileChannel in java code?
DeeKay September 22, 2011 at 6:25 pm · java.nio

Below java code shows example of how to read file using FileChannel –


Java Code Example for FileChannel in java NIO

Java Code Example for FileChannel in java NIO
DeeKay September 22, 2011 at 5:59 pm · java.nio

Below is the java code example for FileChannel of java.nio which shows how to use FileChannel to read file.


How to use a FileChannel to read data into a Buffer in java code?

How to use a FileChannel to read data into a Buffer in java code?
DeeKay September 22, 2011 at 5:41 pm · java.nio

Below Java code shows how to use FileChannel to read data into buffer. This is done by following below steps : Create FileInputStream for the file to be read Create FileChannel from FileInputStream Create ByteBuffer as channel reads data into buffer and set the limit of ByteBuffer. Read data from channel to byteBuffer To read…
Continue Reading »