Class ReadableResourceString
java.lang.Object
com.helger.commons.io.resource.inmemory.AbstractMemoryReadableResource
com.helger.commons.io.resource.inmemory.ReadableResourceByteArray
com.helger.commons.io.resource.inmemory.ReadableResourceString
- All Implemented Interfaces:
IHasByteArray,IHasInputStream,IHasInputStreamAndReader,IMemoryReadableResource,IReadableResource,IResourceBase,IHasSize
An in-memory
IReadableResource based on a String which is
converted to a byte array with the provided charset.- Author:
- Philip Helger
-
Field Summary
Fields inherited from class com.helger.commons.io.resource.inmemory.ReadableResourceByteArray
DEFAULT_COPY_NEEDED -
Constructor Summary
ConstructorsConstructorDescriptionReadableResourceString(String sResourceID, String sString, Charset aCharset) ReadableResourceString(String sString, Charset aCharset) -
Method Summary
Methods inherited from class com.helger.commons.io.resource.inmemory.ReadableResourceByteArray
bytes, getInputStream, getOffset, isCopy, isEmpty, isReadMultiple, size, toStringMethods inherited from class com.helger.commons.io.resource.inmemory.AbstractMemoryReadableResource
exists, getAsFile, getAsURL, getPath, getReadableCloneForPath, getResourceIDMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.io.IHasByteArray
getAllBytes, getBytesAsString, getHexEncoded, hasOffset, isNotEmpty, isPartialArray, startsWith, writeToMethods inherited from interface com.helger.commons.io.IHasInputStream
getBufferedInputStream, withBufferedInputStreamDo, withInputStreamDoMethods inherited from interface com.helger.commons.io.IHasInputStreamAndReader
getBufferedReader, getReader
-
Constructor Details
-
ReadableResourceString
-
ReadableResourceString
-
-
Method Details
-
utf8
-
utf8
-