com.puppycrawl.tools.checkstyle

Class StringArrayReader

final class StringArrayReader extends Reader

A Reader that reads from an underlying String array, assuming each array element corresponds to one line of text.

Note: This class is not thread safe, concurrent reads might produce unexpected results! Checkstyle only works with one thread so currently there is no need to introduce synchronization here.

Author: Lars Kühne

Method Summary
voidclose()
intread(char[] aCbuf, int aOff, int aLen)
{@inheritDoc}
intread()
{@inheritDoc}

Method Detail

close

public void close()

See Also: Reader

read

public int read(char[] aCbuf, int aOff, int aLen)
{@inheritDoc}

read

public int read()
{@inheritDoc}