- java.lang.Object
-
- javafx.css.StyleConverter.StringStore
-
- Enclosing class:
- StyleConverter<F,T>
public static class StyleConverter.StringStore extends Object
The StringStore class.- Since:
- 9
-
-
Constructor Summary
Constructors Constructor Description StringStore()
Creates aStringStore
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
addString(String s)
Adds given string to theStringStore
.static String[]
readBinary(DataInputStream is)
Read the StringStore strings from a givenDataInputStream
.void
writeBinary(DataOutputStream os)
Writes theStringStore
strings to a givenDataOutputStream
.
-
-
-
Method Detail
-
addString
public int addString(String s)
Adds given string to theStringStore
.- 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 theStringStore
strings to a givenDataOutputStream
.- Parameters:
os
-DataOutputStream
where the StringStore strings need to be written- Throws:
IOException
- if writing toDataOutputStream
fails
-
readBinary
public static String[] readBinary(DataInputStream is) throws IOException
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
-
-