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
- 
Constructor SummaryConstructors Constructor Description StringStore()Creates aStringStore.
- 
Method SummaryModifier and Type Method Description intaddString(String s)Adds given string to theStringStore.static String[]readBinary(DataInputStream is)Read the StringStore strings from a givenDataInputStream.voidwriteBinary(DataOutputStream os)Writes theStringStorestrings to a givenDataOutputStream.
- 
Field Details- 
stringsList of strings of thisStringStore.
 
- 
- 
Constructor Details- 
StringStorepublic StringStore()Creates aStringStore.
 
- 
- 
Method Details- 
addStringAdds given string to theStringStore.- Parameters:
- s- string to be added to the- StringStore
- Returns:
- index at which the given string gets added
 
- 
writeBinaryWrites theStringStorestrings to a givenDataOutputStream.- Parameters:
- os-- DataOutputStreamwhere the StringStore strings need to be written
- Throws:
- IOException- if writing to- DataOutputStreamfails
 
- 
readBinaryRead the StringStore strings from a givenDataInputStream.- Parameters:
- is-- DataInputStreamfrom where StringStore strings need to be read from
- Returns:
- a Stringarray constructed by readingDataInputStream
- Throws:
- IOException- if reading from- DataInputStreamfails
 
 
-