public static final class CharsetHelper.InputStreamAndCharset extends Object implements IHasInputStream
| Constructor and Description |
|---|
InputStreamAndCharset(InputStream aIS,
EUnicodeBOM eBOM,
Charset aCharset) |
| Modifier and Type | Method and Description |
|---|---|
EUnicodeBOM |
getBOM() |
Charset |
getCharset() |
Charset |
getCharset(Charset aFallbackCharset) |
InputStream |
getInputStream()
Get the input stream to read from the object.
|
boolean |
hasBOM() |
boolean |
hasCharset() |
boolean |
isReadMultiple()
Check if the
InputStream from IHasInputStream.getInputStream() and
IHasInputStream.getBufferedInputStream() can be acquired more than once. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBufferedInputStreampublic InputStreamAndCharset(@Nonnull InputStream aIS, @Nullable EUnicodeBOM eBOM, @Nullable Charset aCharset)
@Nonnull public InputStream getInputStream()
IHasInputStreamInputStream needs to be created.getInputStream in interface IHasInputStreamnull if resolving failed.public boolean isReadMultiple()
IHasInputStreamInputStream from IHasInputStream.getInputStream() and
IHasInputStream.getBufferedInputStream() can be acquired more than once.isReadMultiple in interface IHasInputStreamtrue if the input stream can be acquired more than
once, false if not.@Nullable public EUnicodeBOM getBOM()
public boolean hasBOM()
public boolean hasCharset()
Copyright © 2014–2020 Philip Helger. All rights reserved.