File tree Expand file tree Collapse file tree 13 files changed +47
-10
lines changed
io/src/main/java/com/itextpdf/io
kernel/src/main/java/com/itextpdf/kernel Expand file tree Collapse file tree 13 files changed +47
-10
lines changed Original file line number Diff line number Diff line change 3
3
import com .itextpdf .io .util .IntHashtable ;
4
4
import com .itextpdf .io .util .Utilities ;
5
5
6
+ import java .io .Serializable ;
6
7
import java .util .StringTokenizer ;
7
8
8
- public class FontEncoding {
9
+ public class FontEncoding implements Serializable {
10
+
11
+ private static final long serialVersionUID = -684967385759439083L ;
9
12
10
13
private static final byte [] emptyBytes = new byte [0 ];
11
14
Original file line number Diff line number Diff line change 1
1
package com .itextpdf .io .font ;
2
2
3
- public class FontIdentification {
3
+ import java .io .Serializable ;
4
+
5
+ public class FontIdentification implements Serializable {
6
+
7
+ private static final long serialVersionUID = -6017656004487895604L ;
4
8
5
9
// name ID 5
6
10
private String ttfVersion ;
Original file line number Diff line number Diff line change 1
1
package com .itextpdf .io .font ;
2
2
3
- public class FontMetrics {
3
+ import java .io .Serializable ;
4
+
5
+ public class FontMetrics implements Serializable {
6
+
7
+ private static final long serialVersionUID = -7113134666493365588L ;
4
8
5
9
protected float normalizationCoef = 1f ;
6
10
Original file line number Diff line number Diff line change 1
1
package com .itextpdf .io .font ;
2
2
3
+ import java .io .Serializable ;
3
4
import java .util .List ;
4
5
import java .util .Map ;
5
6
6
- public class FontNames {
7
+ public class FontNames implements Serializable {
8
+
9
+ private static final long serialVersionUID = 1005168842463622025L ;
7
10
8
11
//macStyle bits
9
12
// Bit 0: Bold (if set to 1);
Original file line number Diff line number Diff line change 4
4
import com .itextpdf .io .font .otf .Glyph ;
5
5
6
6
import java .io .File ;
7
+ import java .io .Serializable ;
7
8
import java .util .HashMap ;
8
9
import java .util .Map ;
9
10
10
- public abstract class FontProgram {
11
+ public abstract class FontProgram implements Serializable {
12
+
13
+ private static final long serialVersionUID = -3488910249070253659L ;
11
14
12
15
public static final int DEFAULT_WIDTH = 1000 ;
13
16
public static final int UNITS_NORMALIZATION = 1000 ;
Original file line number Diff line number Diff line change 14
14
15
15
public class Type1Font extends FontProgram {
16
16
17
+ private static final long serialVersionUID = -1078208220942939920L ;
18
+
17
19
private Type1Parser fontParser ;
18
20
19
21
private String characterSet ;
Original file line number Diff line number Diff line change 8
8
import java .io .ByteArrayOutputStream ;
9
9
import java .io .EOFException ;
10
10
import java .io .InputStream ;
11
+ import java .io .Serializable ;
11
12
12
- class Type1Parser {
13
+ class Type1Parser implements Serializable {
14
+
15
+ private static final long serialVersionUID = -8484541242371901414L ;
13
16
14
17
private static final String AfmHeader = "StartFontMetrics" ;
15
18
Original file line number Diff line number Diff line change 46
46
47
47
import com .itextpdf .io .util .Utilities ;
48
48
49
+ import java .io .Serializable ;
49
50
import java .util .Arrays ;
50
51
51
- public class Glyph {
52
+ public class Glyph implements Serializable {
53
+
54
+ private static final long serialVersionUID = 1627806639423114471L ;
52
55
53
56
// The <i>code</i> or <i>id</i> by which this is represented in the Font File.
54
57
private final int code ;
Original file line number Diff line number Diff line change 6
6
import java .io .FileInputStream ;
7
7
import java .io .InputStream ;
8
8
import java .io .RandomAccessFile ;
9
+ import java .io .Serializable ;
9
10
import java .net .URL ;
10
11
import java .nio .channels .FileChannel ;
11
12
import java .text .MessageFormat ;
12
13
13
14
/**
14
15
* Factory to create {@link RandomAccessSource} objects based on various types of sources
15
16
*/
16
- public final class RandomAccessSourceFactory {
17
+ public final class RandomAccessSourceFactory implements Serializable {
18
+
19
+ private static final long serialVersionUID = -8958482579413233761L ;
17
20
18
21
/**
19
22
* Whether the full content of the source should be read into memory at construction
Original file line number Diff line number Diff line change 1
1
package com .itextpdf .io .util ;
2
2
3
+ import java .io .Serializable ;
3
4
import java .util .Arrays ;
4
5
import java .util .Iterator ;
5
6
import java .util .NoSuchElementException ;
17
18
* @author Bruno Lowagie (change Objects as keys into int values)
18
19
* @author Paulo Soares (added extra methods)
19
20
*/
20
- public class IntHashtable implements Cloneable {
21
+ public class IntHashtable implements Cloneable , Serializable {
22
+
23
+ private static final long serialVersionUID = 7354463962269093965L ;
21
24
22
25
/***
23
26
* The hash table data.
You can’t perform that action at this time.
0 commit comments