is Whitespace At CharBuffer - Java java.nio

Java examples for java.nio:CharBuffer

Description

is Whitespace At CharBuffer

Demo Code


//package com.java2s;
import java.nio.CharBuffer;

public class Main {
    public static boolean isWhitespaceAt(int pos, CharBuffer buf) {
        char c = buf.get(pos);

        return c == ' ' || c == '\t';
    }/*  w  ww.  j  a  v a  2s .  co m*/
}

Related Tutorials