public class CharacterStreamImpl extends Object implements CharacterStream
CharacterStream
Constructor and Description |
---|
CharacterStreamImpl(Reader reader,
long length) |
CharacterStreamImpl(String chars) |
Modifier and Type | Method and Description |
---|---|
Reader |
asReader()
Provides access to the underlying data as a Reader.
|
String |
asString()
Provides access to the underlying data as a String.
|
long |
getLength()
Retrieve the number of characters.
|
void |
release()
Release any underlying resources.
|
public CharacterStreamImpl(String chars)
public CharacterStreamImpl(Reader reader, long length)
public Reader asReader()
CharacterStream
asReader
in interface CharacterStream
public String asString()
CharacterStream
asString
in interface CharacterStream
public long getLength()
CharacterStream
getLength
in interface CharacterStream
public void release()
CharacterStream
release
in interface CharacterStream
Copyright © 2018 JBoss by Red Hat. All rights reserved.