Top Description Fields Constructors Methods
org.jruby.util

public Class InputStreamMarkCursor

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream

Use mark to make a safe rewindable cursor. This assume you know the stream supports mark().

Field Summary

Modifier and TypeField and Description
private int
private byte[]
private int
private int
i

private final InputStream
private final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
endPoint(int delta)

public void
finish()

reset back to mark and then read back to endPoint to repoint stream back to where we want next consumer of stream to start reading from.

public int
read()

public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

actualReadTotalback to summary
private int actualReadTotal
bufback to summary
private byte[] buf
endPointback to summary
private int endPoint
iback to summary
private int i
inback to summary
private final InputStream in
markSizeback to summary
private final int markSize

Constructor Detail

InputStreamMarkCursorback to summary
public InputStreamMarkCursor(InputStream in, int markSize)

Method Detail

endPointback to summary
public void endPoint(int delta)
finishback to summary
public void finish() throws IOException

reset back to mark and then read back to endPoint to repoint stream back to where we want next consumer of stream to start reading from.

readback to summary
public int read() throws IOException
resetback to summary
public void reset() throws IOException
rewindback to summary
public void rewind()