public class InputStreamBuffer extends Object
Modifier and Type | Class and Description |
---|---|
class |
InputStreamBuffer.SubInputStream |
Modifier and Type | Field and Description |
---|---|
FragmentBuffer |
buffer |
Constructor and Description |
---|
InputStreamBuffer(InputStream inputStream,
int length)
Creates an input stream buffer.
|
Modifier and Type | Method and Description |
---|---|
int |
getBytesBuffered() |
InputStreamBuffer.SubInputStream |
getInputStream()
Gets a copy of the input stream positioned at
0 . |
int |
getLength() |
int |
getPosition() |
String |
toString() |
void |
updateFrom(InputStreamBuffer other)
Updates this buffer based on some other buffer.
|
public FragmentBuffer buffer
public InputStreamBuffer(InputStream inputStream, int length)
inputStream
- the input streamlength
- the length of the input streampublic void updateFrom(InputStreamBuffer other)
other
- the other bufferpublic InputStreamBuffer.SubInputStream getInputStream()
0
.public int getPosition()
public int getBytesBuffered()
public int getLength()
Copyright © 2016. All rights reserved.