org.sonar.squid.text
Class StringArrayReader

java.lang.Object
  extended by java.io.Reader
      extended by org.sonar.squid.text.StringArrayReader
All Implemented Interfaces:
Closeable, Readable

public class StringArrayReader
extends Reader


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
StringArrayReader(String[] lines)
           
StringArrayReader(String[] lines, org.sonar.squid.text.StringArrayReader.EndOfLineDelimiter endOfLineDelimiter)
           
 
Method Summary
 void close()
           
 void mark(int readAheadLimit)
           
 boolean markSupported()
           
 int read(char[] cbuf, int off, int len)
           
 boolean ready()
           
 void reset()
           
 
Methods inherited from class java.io.Reader
read, read, read, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringArrayReader

public StringArrayReader(String[] lines)

StringArrayReader

public StringArrayReader(String[] lines,
                         org.sonar.squid.text.StringArrayReader.EndOfLineDelimiter endOfLineDelimiter)
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Reader
Throws:
IOException

ready

public boolean ready()
              throws IOException
Overrides:
ready in class Reader
Throws:
IOException

markSupported

public boolean markSupported()
Overrides:
markSupported in class Reader

mark

public void mark(int readAheadLimit)
          throws IOException
Overrides:
mark in class Reader
Throws:
IOException

reset

public void reset()
           throws IOException
Overrides:
reset in class Reader
Throws:
IOException

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Specified by:
read in class Reader
Throws:
IOException


Copyright © 2009-2012 SonarSource. All Rights Reserved.