Class StyleConverter.StringStore
java.lang.Object
javafx.css.StyleConverter.StringStore
- Enclosing class:
StyleConverter<F,T>
public static class StyleConverter.StringStore extends Object
The StringStore class.
- Since:
- 9
Field Summary
| Modifier and Type | Field | Description |
|---|---|---|
final List |
strings |
List of strings of this StringStore. |
Constructor Summary
| Constructor | Description |
|---|---|
StringStore() |
Creates a StringStore. |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
int |
addString |
Adds given string to the StringStore. |
static String[] |
readBinary |
Read the StringStore strings from a given DataInputStream. |
void |
writeBinary |
Writes the StringStore strings to a given DataOutputStream. |
Field Details
strings
public final List<String> strings
List of strings of this
StringStore.Constructor Details
StringStore
public StringStore()
Creates a
StringStore.Method Details
addString
public int addString(String s)
Adds given string to the
StringStore.- Parameters:
-
s- string to be added to theStringStore - Returns:
- index at which the given string gets added
writeBinary
public void writeBinary(DataOutputStream os) throws IOException
Writes the
StringStore strings to a given DataOutputStream.- Parameters:
-
os-DataOutputStreamwhere the StringStore strings need to be written - Throws:
-
IOException- if writing toDataOutputStreamfails
readBinary
public static String[] readBinary(DataInputStream is) throws IOException
Read the StringStore strings from a given
DataInputStream.- Parameters:
-
is-DataInputStreamfrom where StringStore strings need to be read from - Returns:
- a
Stringarray constructed by readingDataInputStream - Throws:
-
IOException- if reading fromDataInputStreamfails
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.