aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/afp/ptoca/PtocaBuilder.java
diff options
context:
space:
mode:
authorSimon Pepping <spepping@apache.org>2011-09-29 08:58:12 +0000
committerSimon Pepping <spepping@apache.org>2011-09-29 08:58:12 +0000
commit0a4a0fdf2e28fd2f685104efcde2cde6b7b57124 (patch)
tree3f946943302f262934aeb356b3782c092611d742 /src/java/org/apache/fop/afp/ptoca/PtocaBuilder.java
parenteebad9b8a3ea400539a8408cbc6dcb2386c18379 (diff)
downloadxmlgraphics-fop-0a4a0fdf2e28fd2f685104efcde2cde6b7b57124.tar.gz
xmlgraphics-fop-0a4a0fdf2e28fd2f685104efcde2cde6b7b57124.zip
Various small fixes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1177228 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/afp/ptoca/PtocaBuilder.java')
-rw-r--r--src/java/org/apache/fop/afp/ptoca/PtocaBuilder.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/java/org/apache/fop/afp/ptoca/PtocaBuilder.java b/src/java/org/apache/fop/afp/ptoca/PtocaBuilder.java
index d1049ca73..059753338 100644
--- a/src/java/org/apache/fop/afp/ptoca/PtocaBuilder.java
+++ b/src/java/org/apache/fop/afp/ptoca/PtocaBuilder.java
@@ -85,10 +85,6 @@ public abstract class PtocaBuilder implements PtocaConstants {
baout.writeTo(out);
}
- private void write(byte[] data, int offset, int length) {
- baout.write(data, offset, length);
- }
-
private void writeByte(int data) {
baout.write(data);
}
@@ -180,14 +176,12 @@ public abstract class PtocaBuilder implements PtocaConstants {
currentX = -1;
}
- private static final int TRANSPARENT_MAX_SIZE = 253;
-
/**
* The Transparent Data control sequence contains a sequence of code points
* that are presented without a scan for embedded control sequences. If the data is larger
* than fits in one chunk, additional chunks are automatically generated.
*
- * @param data The text data to add.
+ * @param encodedChars The encoded text data to add.
* @throws IOException if an I/O error occurs
*/
public void addTransparentData(EncodedChars encodedChars) throws IOException {
@@ -206,7 +200,8 @@ public abstract class PtocaBuilder implements PtocaConstants {
- private void addTransparentDataChunk(EncodedChars encodedChars, int offset, int length) throws IOException {
+ private void addTransparentDataChunk(EncodedChars encodedChars, int offset, int length)
+ throws IOException {
newControlSequence();
encodedChars.writeTo(baout, offset, length);
commit(chained(TRN));