APIdia Launch Partner
Top Description Fields Constructors Methods
sun.nio.fs

pack-priv Class Util

extends Object
Class Inheritance
Imports
java.util.*, java.nio.file.*, java.nio.charset.Charset, jdk.internal.util.StaticProperty

Utility methods

Field Summary

Modifier and TypeField and Description
private static final Charset

Constructor Summary

AccessConstructor and Description
private
Util()

Method Summary

Modifier and TypeMethod and Description
pack-priv static Charset
jnuEncoding()

Returns Charset corresponding to the sun.jnu.encoding property

pack-priv static <E> Set<E>
newSet(E... elements)

Returns a Set containing the given elements.

pack-priv static <E> Set<E>
newSet(Set<E> other, E... elements)

Returns a Set containing all the elements of the given Set plus the given elements.

pack-priv static String[]
split(String s, char c)

Splits a string around the given character.

pack-priv static byte[]
toBytes(String s)

Encodes the given String into a sequence of bytes using the Charset specified by the sun.jnu.encoding property.

pack-priv static String
toString(byte[] bytes)

Constructs a new String by decoding the specified array of bytes using the Charset specified by the sun.jnu.encoding property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jnuEncodingback to summary
private static final Charset jnuEncoding

Constructor Detail

Utilback to summary
private Util()

Method Detail

jnuEncodingback to summary
pack-priv static Charset jnuEncoding()

Returns Charset corresponding to the sun.jnu.encoding property

newSetback to summary
pack-priv static <E> Set<E> newSet(E... elements)

Returns a Set containing the given elements.

Annotations
@SafeVarargs
newSetback to summary
pack-priv static <E> Set<E> newSet(Set<E> other, E... elements)

Returns a Set containing all the elements of the given Set plus the given elements.

Annotations
@SafeVarargs
splitback to summary
pack-priv static String[] split(String s, char c)

Splits a string around the given character. The array returned by this method contains each substring that is terminated by the character. Use for simple string spilting cases when needing to avoid loading regex.

toBytesback to summary
pack-priv static byte[] toBytes(String s)

Encodes the given String into a sequence of bytes using the Charset specified by the sun.jnu.encoding property.

toStringback to summary
pack-priv static String toString(byte[] bytes)

Constructs a new String by decoding the specified array of bytes using the Charset specified by the sun.jnu.encoding property.