Package org.zefer.pd4ml
Class PD4Util
java.lang.Object
org.zefer.pd4ml.PD4Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
generateFontPropertiesFile
(String fontsPath, BufferedOutputStream bos, boolean addFontDirReference) scan font directory, generate pd4fonts.properties and output it to the given OutputStream.static void
generateFontPropertiesFile
(String fontsPath, String fontConfigFileLocation) scan font directory and generate pd4fonts.properties
-
Constructor Details
-
PD4Util
public PD4Util()
-
-
Method Details
-
generateFontPropertiesFile
public static void generateFontPropertiesFile(String fontsPath, String fontConfigFileLocation) throws IOException scan font directory and generate pd4fonts.properties- Parameters:
fontsPath
- fonts directory pathfontConfigFileLocation
- a target directory to store pd4fonts.properties. If null, the file is stored in fontsPath.- Throws:
IOException
-
generateFontPropertiesFile
public static void generateFontPropertiesFile(String fontsPath, BufferedOutputStream bos, boolean addFontDirReference) throws IOException scan font directory, generate pd4fonts.properties and output it to the given OutputStream.- Parameters:
fontsPath
- font directory pathbos
- pd4fonts.properties data output stream- Throws:
IOException
-