Module openj9.dtfj
Class LineJavaCoreInputBuffer
- java.lang.Object
-
- com.ibm.dtfj.javacore.parser.framework.input.OffsetBasedJavaCoreInputBuffer
-
- com.ibm.dtfj.javacore.parser.framework.input.LineJavaCoreInputBuffer
-
- All Implemented Interfaces:
IInputBuffer
public class LineJavaCoreInputBuffer extends OffsetBasedJavaCoreInputBuffer
Input buffer for javacore scanner. Consumes a subsection of characters from the buffer
-
-
Field Summary
-
Fields declared in class com.ibm.dtfj.javacore.parser.framework.input.OffsetBasedJavaCoreInputBuffer
DEFAULT_LENGTH, fBuffer, fOffset, START_OFFSET
-
-
Constructor Summary
Constructors Constructor Description LineJavaCoreInputBuffer(Reader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the java.io.Reader or input stream associated with this buffered reader.int
consume(int length)
Consumes elements from the current line.-
Methods declared in class com.ibm.dtfj.javacore.parser.framework.input.OffsetBasedJavaCoreInputBuffer
charAt, endReached, isStreamEnd, length, markStreamEnd, updateOffset
-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface com.ibm.dtfj.javacore.parser.framework.input.IInputBuffer
nextLine
-
-
-
-
Constructor Detail
-
LineJavaCoreInputBuffer
public LineJavaCoreInputBuffer(Reader reader) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException
Description copied from class:OffsetBasedJavaCoreInputBuffer
Closes the java.io.Reader or input stream associated with this buffered reader.- Specified by:
close
in interfaceIInputBuffer
- Specified by:
close
in classOffsetBasedJavaCoreInputBuffer
- Throws:
IOException
- if error encountered while closing.- See Also:
IInputBuffer.close()
-
consume
public int consume(int length) throws IOException
Consumes elements from the current line.- Parameters:
amount
- of characters to consume.- Returns:
- return the offset value of the consumed portion. Note that this does not return the new offset after consumption but the offset of the section being consumed.
- Throws:
IOException
- if error occurs while refilling the buffer.IndexOutOfBoundsException
- if length is outside buffer range- See Also:
IInputBuffer.consume(int)
-
-