asia.redact.bracket.properties
Class InputAdapter
java.lang.Object
asia.redact.bracket.properties.InputAdapter
public class InputAdapter
- extends Object
Utility methods to get data out of different sources, this is used in the lexer
internally. These methods are package private.
Some of this is shamelessly lifted from
http://www.java2s.com/Code/Java/File-Input-Output/ReadInputStreamtostring.htm
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_BUFFER_SIZE
private static final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
lock
private final Lock lock
InputAdapter
public InputAdapter()
asString
String asString(File file)
asString
String asString(Reader reader)
asString
String asString(InputStream pStream)
copy
private long copy(InputStream pInputStream,
OutputStream pOutputStream,
boolean pClose)
throws IOException
- Throws:
IOException
copy
private long copy(InputStream pIn,
OutputStream pOut,
boolean pClose,
byte[] pBuffer)
throws IOException
- Throws:
IOException
Copyright © 2011-2013 David R. Smith. All Rights Reserved.