Skip to content

Commit e3a9502

Browse files
author
Egor Martsynkovsky
committed
Change order of constructors
DEVSIX-5705
1 parent 008b234 commit e3a9502

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

kernel/src/main/java/com/itextpdf/kernel/pdf/PdfReader.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ public class PdfReader implements Closeable, Serializable {
122122
protected boolean hybridXref = false;
123123
protected boolean fixedXref = false;
124124
protected boolean xrefStm = false;
125+
126+
PdfReader(IRandomAccessSource byteSource, ReaderProperties properties, boolean closeStream) throws IOException {
127+
this.properties = properties;
128+
this.tokens = getOffsetTokeniser(byteSource, closeStream);
129+
}
130+
125131
/**
126132
* Constructs a new PdfReader.
127133
*
@@ -133,11 +139,6 @@ public PdfReader(IRandomAccessSource byteSource, ReaderProperties properties) th
133139
this(byteSource, properties, false);
134140
}
135141

136-
PdfReader(IRandomAccessSource byteSource, ReaderProperties properties, boolean closeStream) throws IOException {
137-
this.properties = properties;
138-
this.tokens = getOffsetTokeniser(byteSource, closeStream);
139-
}
140-
141142
/**
142143
* Reads and parses a PDF document.
143144
*

0 commit comments

Comments
 (0)