Interface FontStorage
public interface FontStorage
Storage for the fonts installed on the server.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFont
(String name, InputStream fontData) Adds a font to the server.boolean
deleteFont
(String name) Deletes the font specified by given name from the server.Returns the font by name.getFontData
(String name) Returns data for the specified font as stream.Returns the names of all fonts installed on the server.
-
Method Details
-
getFont
Returns the font by name.- Parameters:
name
- the name of the font.- Returns:
- the font.
- Since:
- 4.0
-
getFontData
Returns data for the specified font as stream.- Parameters:
name
- the name of the font to get data for.- Returns:
- the data as stream.
- Since:
- 4.1.3
-
getFontNames
Returns the names of all fonts installed on the server.- Returns:
- the list of font names.
- Since:
- 4.0
-
deleteFont
Deletes the font specified by given name from the server.- Parameters:
name
- the name of the font to delete.- Returns:
- true if delete was successful.
- Since:
- 4.0
- See Also:
-
addFont
Adds a font to the server.- Parameters:
name
- the name of the new font.fontData
- the data of the font as stream,- Throws:
FontAlreadyExistsException
- if the font already exists on the server.IOException
- if the addition of the font failed.- Since:
- 4.0
-