Skip to content

Commit d10bb4d

Browse files
committed
Interface names now start with "I" letter
1 parent 98ca60c commit d10bb4d

File tree

131 files changed

+496
-508
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+496
-508
lines changed

io/src/main/java/com/itextpdf/io/font/ExtraEncoding.java renamed to io/src/main/java/com/itextpdf/io/font/IExtraEncoding.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This file is part of the iText (R) project.
4949
* replace existing ones. It is used in the context of <code>PdfEncoding</code>.
5050
* @author Paulo Soares
5151
*/
52-
public interface ExtraEncoding {
52+
public interface IExtraEncoding {
5353

5454
/**
5555
* Converts an Unicode string to a byte array according to some encoding.
@@ -58,7 +58,7 @@ public interface ExtraEncoding {
5858
* supports more than one encoding.
5959
* @return the conversion or <CODE>null</CODE> if no conversion is supported
6060
*/
61-
public byte[] charToByte(String text, String encoding);
61+
byte[] charToByte(String text, String encoding);
6262

6363
/**
6464
* Converts an Unicode char to a byte array according to some encoding.
@@ -67,7 +67,7 @@ public interface ExtraEncoding {
6767
* supports more than one encoding.
6868
* @return the conversion or <CODE>null</CODE> if no conversion is supported
6969
*/
70-
public byte[] charToByte(char char1, String encoding);
70+
byte[] charToByte(char char1, String encoding);
7171

7272
/**
7373
* Converts a byte array to an Unicode string according to some encoding.
@@ -76,5 +76,5 @@ public interface ExtraEncoding {
7676
* supports more than one encoding.
7777
* @return the conversion or <CODE>null</CODE> if no conversion is supported
7878
*/
79-
public String byteToChar(byte b[], String encoding);
79+
String byteToChar(byte b[], String encoding);
8080
}

io/src/main/java/com/itextpdf/io/font/PdfEncodings.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public class PdfEncodings {
146146

147147
private static final IntHashtable pdfEncoding = new IntHashtable();
148148

149-
private static final Map<String, ExtraEncoding> extraEncodings = new HashMap<>();
149+
private static final Map<String, IExtraEncoding> extraEncodings = new HashMap<>();
150150

151151
static {
152152
for (int k = 128; k < 161; ++k) {
@@ -188,7 +188,7 @@ public static byte[] convertToBytes(String text, String encoding) {
188188
}
189189
return b;
190190
}
191-
ExtraEncoding extra = extraEncodings.get(encoding.toLowerCase());
191+
IExtraEncoding extra = extraEncodings.get(encoding.toLowerCase());
192192
if (extra != null) {
193193
byte[] b = extra.charToByte(text, encoding);
194194
if (b != null)
@@ -284,7 +284,7 @@ public static String convertToString(byte[] bytes, String encoding) {
284284
}
285285
return new String(c);
286286
}
287-
ExtraEncoding extra = extraEncodings.get(encoding.toLowerCase());
287+
IExtraEncoding extra = extraEncodings.get(encoding.toLowerCase());
288288
if (extra != null) {
289289
String text = extra.byteToChar(bytes, encoding);
290290
if (text != null) {
@@ -337,13 +337,13 @@ public static boolean isPdfDocEncoding(String text) {
337337
* @param enc the conversion class
338338
*/
339339
@SuppressWarnings("unchecked")
340-
public static void addExtraEncoding(String name, ExtraEncoding enc) {
340+
public static void addExtraEncoding(String name, IExtraEncoding enc) {
341341
synchronized (extraEncodings) {
342342
extraEncodings.put(name.toLowerCase(), enc);
343343
}
344344
}
345345

346-
private static class WingdingsConversion implements ExtraEncoding {
346+
private static class WingdingsConversion implements IExtraEncoding {
347347

348348
public byte[] charToByte(char char1, String encoding) {
349349
if (char1 == ' ')
@@ -406,7 +406,7 @@ public String byteToChar(byte[] b, String encoding) {
406406
};
407407
}
408408

409-
private static class Cp437Conversion implements ExtraEncoding {
409+
private static class Cp437Conversion implements IExtraEncoding {
410410
private static IntHashtable c2b = new IntHashtable();
411411

412412
public byte[] charToByte(String text, String encoding) {
@@ -478,7 +478,7 @@ public String byteToChar(byte[] b, String encoding) {
478478
}
479479
}
480480

481-
private static class SymbolConversion implements ExtraEncoding {
481+
private static class SymbolConversion implements IExtraEncoding {
482482

483483
private static final IntHashtable t1 = new IntHashtable();
484484
private static final IntHashtable t2 = new IntHashtable();
@@ -585,7 +585,7 @@ public String byteToChar(byte[] b, String encoding) {
585585
}
586586
}
587587

588-
private static class SymbolTTConversion implements ExtraEncoding {
588+
private static class SymbolTTConversion implements IExtraEncoding {
589589

590590
public byte[] charToByte(char char1, String encoding) {
591591
if ((char1 & 0xff00) == 0 || (char1 & 0xff00) == 0xf000)

io/src/main/java/com/itextpdf/io/font/cmap/CMapLocationFromBytes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This file is part of the iText (R) project.
5151
/**
5252
* @author psoares
5353
*/
54-
public class CMapLocationFromBytes implements CMapLocation {
54+
public class CMapLocationFromBytes implements ICMapLocation {
5555

5656
private byte[] data;
5757

io/src/main/java/com/itextpdf/io/font/cmap/CMapLocationResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This file is part of the iText (R) project.
5656
/**
5757
* @author psoares
5858
*/
59-
public class CMapLocationResource implements CMapLocation{
59+
public class CMapLocationResource implements ICMapLocation {
6060

6161
public PdfTokenizer getLocation(String location) throws java.io.IOException {
6262
String fullName = FontConstants.RESOURCE_PATH + "cmap/" + location;

io/src/main/java/com/itextpdf/io/font/cmap/CMapParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ public class CMapParser {
6969

7070
private static final int MAX_LEVEL = 10;
7171

72-
public static void parseCid(String cmapName, AbstractCMap cmap, CMapLocation location) throws java.io.IOException {
72+
public static void parseCid(String cmapName, AbstractCMap cmap, ICMapLocation location) throws java.io.IOException {
7373
parseCid(cmapName, cmap, location, 0);
7474
}
7575

76-
private static void parseCid(String cmapName, AbstractCMap cmap, CMapLocation location, int level) throws java.io.IOException {
76+
private static void parseCid(String cmapName, AbstractCMap cmap, ICMapLocation location, int level) throws java.io.IOException {
7777
if (level >= MAX_LEVEL)
7878
return;
7979
PdfTokenizer inp = location.getLocation(cmapName);

io/src/main/java/com/itextpdf/io/font/cmap/CMapLocation.java renamed to io/src/main/java/com/itextpdf/io/font/cmap/ICMapLocation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ This file is part of the iText (R) project.
4949
/**
5050
* @author psoares
5151
*/
52-
public interface CMapLocation {
52+
public interface ICMapLocation {
5353
PdfTokenizer getLocation(String location) throws java.io.IOException;
5454
}

io/src/main/java/com/itextpdf/io/font/otf/GlyphLine.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public void substituteOneToMany(OpenTypeFontTableReader tableReader, int[] subst
236236
}
237237
}
238238

239-
public GlyphLine filter(GlyphLineFilter filter) {
239+
public GlyphLine filter(IGlyphLineFilter filter) {
240240
boolean anythingFiltered = false;
241241
List<Glyph> filteredGlyphs = new ArrayList<>(end - start);
242242
List<ActualText> filteredActualText = actualText != null ? new ArrayList<ActualText>(end - start) : null;
@@ -301,7 +301,7 @@ public GlyphLinePart(int start, int end, String actualText) {
301301
}
302302
}
303303

304-
public interface GlyphLineFilter {
304+
public interface IGlyphLineFilter {
305305
boolean accept(Glyph glyph);
306306
}
307307

io/src/main/java/com/itextpdf/io/image/Jbig2Image.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This file is part of the iText (R) project.
4848
import com.itextpdf.io.LogMessageConstant;
4949
import com.itextpdf.io.codec.Jbig2SegmentReader;
5050
import com.itextpdf.io.source.RandomAccessFileOrArray;
51-
import com.itextpdf.io.source.RandomAccessSource;
51+
import com.itextpdf.io.source.IRandomAccessSource;
5252
import com.itextpdf.io.source.RandomAccessSourceFactory;
5353

5454
import java.net.URL;
@@ -80,7 +80,7 @@ public int getPage() {
8080
* @return the number of pages
8181
*/
8282
public static int getNumberOfPages(byte[] bytes) {
83-
RandomAccessSource ras = new RandomAccessSourceFactory().createSource(bytes);
83+
IRandomAccessSource ras = new RandomAccessSourceFactory().createSource(bytes);
8484
return getNumberOfPages(new RandomAccessFileOrArray(ras));
8585
}
8686

io/src/main/java/com/itextpdf/io/image/Jbig2ImageHelper.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,10 @@ This file is part of the iText (R) project.
4646

4747
import com.itextpdf.io.IOException;
4848
import com.itextpdf.io.codec.Jbig2SegmentReader;
49-
import com.itextpdf.io.source.ByteArrayOutputStream;
5049
import com.itextpdf.io.source.RandomAccessFileOrArray;
51-
import com.itextpdf.io.source.RandomAccessSource;
50+
import com.itextpdf.io.source.IRandomAccessSource;
5251
import com.itextpdf.io.source.RandomAccessSourceFactory;
5352

54-
import java.io.InputStream;
5553
import java.util.HashMap;
5654
import java.util.Map;
5755

@@ -80,7 +78,7 @@ public static void processImage(Image jbig2) {
8078
throw new IllegalArgumentException("JBIG2 image expected");
8179
Jbig2Image image = (Jbig2Image)jbig2;
8280
try {
83-
RandomAccessSource ras;
81+
IRandomAccessSource ras;
8482
if (image.getData() == null) {
8583
image.loadData();
8684
}

io/src/main/java/com/itextpdf/io/image/TiffImage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This file is part of the iText (R) project.
4747
import com.itextpdf.io.IOException;
4848
import com.itextpdf.io.codec.TIFFDirectory;
4949
import com.itextpdf.io.source.RandomAccessFileOrArray;
50-
import com.itextpdf.io.source.RandomAccessSource;
50+
import com.itextpdf.io.source.IRandomAccessSource;
5151
import com.itextpdf.io.source.RandomAccessSourceFactory;
5252

5353
import java.net.URL;
@@ -98,7 +98,7 @@ public static int getNumberOfPages(RandomAccessFileOrArray raf) {
9898
* @return the number of pages.
9999
*/
100100
public static int getNumberOfPages(byte[] bytes) {
101-
RandomAccessSource ras = new RandomAccessSourceFactory().createSource(bytes);
101+
IRandomAccessSource ras = new RandomAccessSourceFactory().createSource(bytes);
102102
return getNumberOfPages(new RandomAccessFileOrArray(ras));
103103
}
104104

0 commit comments

Comments
 (0)