java.lang.Object
javafx.css.StyleConverter.StringStore
- Enclosing class:
StyleConverter<F,
T>
The StringStore class.
- Since:
- 9
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Adds given string to theStringStore
.static String[]
Read the StringStore strings from a givenDataInputStream
.void
Writes theStringStore
strings to a givenDataOutputStream
.
-
Field Details
-
strings
List of strings of thisStringStore
.
-
-
Constructor Details
-
StringStore
public StringStore()Creates aStringStore
.
-
-
Method Details
-
addString
Adds given string to theStringStore
.- Parameters:
s
- string to be added to theStringStore
- Returns:
- index at which the given string gets added
-
writeBinary
Writes theStringStore
strings to a givenDataOutputStream
.- Parameters:
os
-DataOutputStream
where the StringStore strings need to be written- Throws:
IOException
- if writing toDataOutputStream
fails
-
readBinary
Read the StringStore strings from a givenDataInputStream
.- Parameters:
is
-DataInputStream
from where StringStore strings need to be read from- Returns:
- a
String
array constructed by readingDataInputStream
- Throws:
IOException
- if reading fromDataInputStream
fails
-