Package org.artifactory.util
Class StringInputStream
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
org.artifactory.util.StringInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Creates an input stream from a string.
- Author:
- Yossi Shaul
-
Field Summary
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
-
Constructor Summary
ConstructorsConstructorDescriptionStringInputStream
(String string) StringInputStream
(String string, String encoding) -
Method Summary
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
Methods inherited from class java.io.InputStream
nullInputStream, read, readNBytes, skipNBytes
-
Constructor Details
-
StringInputStream
- Throws:
UnsupportedEncodingException
-
StringInputStream
- Throws:
UnsupportedEncodingException
-
-
Method Details
-
getLength
public int getLength()- Returns:
- The length, in bytes, of the input stream
-