Tabnine Logo
AbstractModule$ReaderHelper
Code IndexAdd Tabnine to your IDE (free)

How to use
AbstractModule$ReaderHelper
in
org.jfree.base.modules

Best Java code snippets using org.jfree.base.modules.AbstractModule$ReaderHelper (Showing top 18 results out of 315)

origin: org.jfree/jcommon

final ReaderHelper rh = new ReaderHelper(new BufferedReader
  (new InputStreamReader(in, "ISO-8859-1")));
try
 while (rh.hasNext())
  final String lastLineRead = rh.next();
  if (lastLineRead.startsWith("module-info:"))
 rh.close();
origin: org.jfree/jcommon

while (reader.hasNext())
 final String lastLineRead = reader.next();
  reader.pushBack(lastLineRead);
  return;
origin: jfree/jcommon

final ReaderHelper rh = new ReaderHelper(new BufferedReader
  (new InputStreamReader(in, "ISO-8859-1")));
try
 while (rh.hasNext())
  final String lastLineRead = rh.next();
  if (lastLineRead.startsWith("module-info:"))
 rh.close();
origin: org.jfree/com.springsource.org.jfree

final ReaderHelper rh = new ReaderHelper(new BufferedReader
  (new InputStreamReader(in, "ISO-8859-1")));
try
 while (rh.hasNext())
  final String lastLineRead = rh.next();
  if (lastLineRead.startsWith("module-info:"))
 rh.close();
origin: jfree/jcommon

while (reader.hasNext())
 final String lastLineRead = reader.next();
  reader.pushBack(lastLineRead);
  return;
origin: org.jfree/com.springsource.org.jfree

while (reader.hasNext())
 final String lastLineRead = reader.next();
  reader.pushBack(lastLineRead);
  return mi;
origin: org.jfree/com.springsource.org.jfree

while (reader.hasNext())
 final String lastLineRead = reader.next();
  reader.pushBack(lastLineRead);
  return;
origin: org.jfree/jcommon

while (reader.hasNext())
 final String lastLineRead = reader.next();
  reader.pushBack(lastLineRead);
  return mi;
origin: jfree/jcommon

while (reader.hasNext())
 final String lastLineRead = reader.next();
  reader.pushBack(lastLineRead);
  return mi;
origin: org.jfree/com.springsource.org.jfree

while (isNextLineValueLine(reader))
 firstLine = reader.next();
 final String trimedLine = firstLine.trim();
 if (trimedLine.length() == 0 && (newLine == false))
origin: org.jfree/jcommon

while (isNextLineValueLine(reader))
 firstLine = reader.next();
 final String trimedLine = firstLine.trim();
 if (trimedLine.length() == 0 && (newLine == false))
origin: jfree/jcommon

while (isNextLineValueLine(reader))
 firstLine = reader.next();
 final String trimedLine = firstLine.trim();
 if (trimedLine.length() == 0 && (newLine == false))
origin: org.jfree/jcommon

/**
 * Checks, whether the next line in the reader is a value line.
 *
 * @param reader from where to read the lines.
 * @return true, if the next line is a value line, false otherwise.
 * @throws IOException if an IO error occurs.
 */
private boolean isNextLineValueLine (final ReaderHelper reader) throws IOException
{
 if (reader.hasNext() == false)
 {
  return false;
 }
 final String firstLine = reader.next();
 if (firstLine == null)
 {
  return false;
 }
 if (parseKey(firstLine) != null)
 {
  reader.pushBack(firstLine);
  return false;
 }
 reader.pushBack(firstLine);
 return true;
}
origin: jfree/jcommon

/**
 * Checks, whether the next line in the reader is a value line.
 *
 * @param reader from where to read the lines.
 * @return true, if the next line is a value line, false otherwise.
 * @throws IOException if an IO error occurs.
 */
private boolean isNextLineValueLine (final ReaderHelper reader) throws IOException
{
 if (reader.hasNext() == false)
 {
  return false;
 }
 final String firstLine = reader.next();
 if (firstLine == null)
 {
  return false;
 }
 if (parseKey(firstLine) != null)
 {
  reader.pushBack(firstLine);
  return false;
 }
 reader.pushBack(firstLine);
 return true;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Checks, whether the next line in the reader is a value line.
 * 
 * @param reader from where to read the lines.
 * @return true, if the next line is a value line, false otherwise.
 * @throws IOException if an IO error occurs.
 */
private boolean isNextLineValueLine (final ReaderHelper reader) throws IOException
{
 if (reader.hasNext() == false)
 {
  return false;
 }
 final String firstLine = reader.next();
 if (firstLine == null)
 {
  return false;
 }
 if (parseKey(firstLine) != null)
 {
  reader.pushBack(firstLine);
  return false;
 }
 reader.pushBack(firstLine);
 return true;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Checks, whether the reader contains a next line. Returns false if the end
 * of the stream has been reached.
 *
 * @return true, if there is a next line to read, false otherwise.
 * @throws IOException if an error occures.
 */
public boolean hasNext() throws IOException
{
 if (this.buffer == null)
 {
  this.buffer = readLine();
 }
 return this.buffer != null;
}
origin: org.jfree/jcommon

/**
 * Checks, whether the reader contains a next line. Returns false if the end
 * of the stream has been reached.
 *
 * @return true, if there is a next line to read, false otherwise.
 * @throws IOException if an error occures.
 */
public boolean hasNext() throws IOException
{
 if (this.buffer == null)
 {
  this.buffer = readLine();
 }
 return this.buffer != null;
}
origin: jfree/jcommon

/**
 * Checks, whether the reader contains a next line. Returns false if the end
 * of the stream has been reached.
 *
 * @return true, if there is a next line to read, false otherwise.
 * @throws IOException if an error occures.
 */
public boolean hasNext() throws IOException
{
 if (this.buffer == null)
 {
  this.buffer = readLine();
 }
 return this.buffer != null;
}
org.jfree.base.modulesAbstractModule$ReaderHelper

Javadoc

The reader helper provides a pushback interface for the reader to read and buffer complete lines.

Most used methods

  • <init>
    Creates a new reader helper for the given buffered reader.
  • close
    Closes the reader.
  • hasNext
    Checks, whether the reader contains a next line. Returns false if the end of the stream has been rea
  • next
    Returns the next line.
  • pushBack
    Pushes the given line back into the buffer. Only one line can be contained in the buffer at one time
  • readLine
    Reads the next line skipping all comment lines.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JOptionPane (javax.swing)
  • JTable (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now