Package com.google.common.hash
Class Funnels
java.lang.Object
com.google.common.hash.Funnels
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
Funnels for common types. All implementations are serializable.
- Since:
- 11.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic OutputStreamasOutputStream(PrimitiveSink sink) Deprecated.Wraps aPrimitiveSinkas anOutputStream, so it is easy tofunnelan object to aPrimitiveSinkif there is already a way to write the contents of the object to anOutputStream.static Funnel<byte[]> Deprecated.Returns a funnel that extracts the bytes from abytearray.Deprecated.Returns a funnel for integers.Deprecated.Returns a funnel for longs.sequentialFunnel(Funnel<E> elementFunnel) Deprecated.Returns a funnel that processes anIterableby funneling its elements in iteration order with the specified funnel.static Funnel<CharSequence> Deprecated.UseunencodedCharsFunnel()instead.static Funnel<CharSequence> stringFunnel(Charset charset) Deprecated.Returns a funnel that encodes the characters of aCharSequencewith the specifiedCharset.static Funnel<CharSequence> Deprecated.Returns a funnel that extracts the characters from aCharSequence, a character at a time, without performing any encoding.
-
Method Details
-
byteArrayFunnel
Deprecated.Returns a funnel that extracts the bytes from abytearray. -
unencodedCharsFunnel
Deprecated.Returns a funnel that extracts the characters from aCharSequence, a character at a time, without performing any encoding. If you need to use a specific encoding, usestringFunnel(Charset)instead.- Since:
- 15.0 (since 11.0 as
Funnels.stringFunnel().
-
stringFunnel
Deprecated.UseunencodedCharsFunnel()instead. This method is scheduled for removal in Guava 16.0.Returns a funnel that extracts the characters from aCharSequence. -
stringFunnel
Deprecated.Returns a funnel that encodes the characters of aCharSequencewith the specifiedCharset.- Since:
- 15.0
-
integerFunnel
Deprecated.Returns a funnel for integers.- Since:
- 13.0
-
sequentialFunnel
Deprecated.Returns a funnel that processes anIterableby funneling its elements in iteration order with the specified funnel. No separators are added between the elements.- Since:
- 15.0
-
longFunnel
Deprecated.Returns a funnel for longs.- Since:
- 13.0
-
asOutputStream
Deprecated.Wraps aPrimitiveSinkas anOutputStream, so it is easy tofunnelan object to aPrimitiveSinkif there is already a way to write the contents of the object to anOutputStream.The
closeandflushmethods of the returnedOutputStreamdo nothing, and no method throwsIOException.- Since:
- 13.0
-