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
public class ReadableResourceString extends ReadableResourceByteArray
An in-memoryIReadableResourcebased on aStringwhich 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
Constructors Constructor Description ReadableResourceString(String sResourceID, String sString, Charset aCharset)ReadableResourceString(String sString, Charset aCharset)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReadableResourceStringutf8(String sString)static ReadableResourceStringutf8(String sResourceID, String sString)-
Methods inherited from class com.helger.commons.io.resource.inmemory.ReadableResourceByteArray
bytes, getInputStream, getOffset, isCopy, isEmpty, isReadMultiple, size, toString
-
Methods inherited from class com.helger.commons.io.resource.inmemory.AbstractMemoryReadableResource
exists, getAsFile, getAsURL, getPath, getReadableCloneForPath, getResourceID
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.commons.io.IHasByteArray
getAllBytes, getBytesAsString, getHexEncoded, hasOffset, isNotEmpty, startsWith, writeTo
-
Methods inherited from interface com.helger.commons.io.IHasInputStream
getBufferedInputStream
-
Methods inherited from interface com.helger.commons.io.IHasInputStreamAndReader
getBufferedReader, getReader
-
-
-
-
Method Detail
-
utf8
@Nonnull public static ReadableResourceString utf8(@Nonnull String sString)
-
-