Author: tilman
Date: Wed Jul 22 11:50:45 2026
New Revision: 1936462
Log:
PDFBOX-5660: refactor / limit visibility
Modified:
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/flagbitspane/PanoseFlag.java
Modified:
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/flagbitspane/PanoseFlag.java
==============================================================================
---
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/flagbitspane/PanoseFlag.java
Wed Jul 22 11:46:33 2026 (r1936461)
+++
pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/flagbitspane/PanoseFlag.java
Wed Jul 22 11:50:45 2026 (r1936462)
@@ -27,7 +27,7 @@ import org.apache.pdfbox.pdmodel.font.PD
* @author Khyrul Bashar
* A class that provide Panose classification data
*/
-public class PanoseFlag extends Flag
+class PanoseFlag extends Flag
{
private final byte[] bytes;
@@ -37,13 +37,12 @@ public class PanoseFlag extends Flag
* Constructor.
* @param dictionary COSDictionary instance. style dictionary that
contains panose object.
*/
- public PanoseFlag(COSDictionary dictionary)
+ PanoseFlag(COSDictionary dictionary)
{
- byteValue = (COSString)dictionary.getDictionaryObject(COSName.PANOSE);
- bytes = getPanoseBytes(dictionary);
+ byteValue = (COSString) dictionary.getDictionaryObject(COSName.PANOSE);
+ bytes = byteValue.getBytes();
}
-
@Override
String getFlagType()
{
@@ -254,10 +253,4 @@ public class PanoseFlag extends Flag
"Ducking/Large",
}[index];
}
-
- public final byte[] getPanoseBytes(COSDictionary style)
- {
- COSString panose =
(COSString)style.getDictionaryObject(COSName.PANOSE);
- return panose.getBytes();
- }
}