| 1 package com.etymon.pj.object.pagemark; 2 3 import java.io.*; 4 import java.util.*; 5 import com.etymon.pj.object.*; 6 7 11 public class XEI 12 extends PageMarkOperator { 13 14 public XEI(PjDictionary properties, byte[] imageData) { 15 _properties = properties; 16 _imageData = imageData; 17 } 18 19 public PjDictionary getProperties() { 20 return _properties; 21 } 22 23 public byte[] getImageData() { 24 return _imageData; 25 } 26 27 public long writePdf(OutputStream os) throws IOException { 28 long z = writeln(os, "BI"); 29 z = z + _properties.writePdf(os); 30 z = z + write(os, "ID "); 31 z = z + write(os, _imageData); 32 z = z + writeln(os, "EI"); 33 return z; 34 } 35 36 40 public Object clone() { 41 return this; 43 } 44 45 public boolean equals(Object obj) { 46 if (obj == null) { 48 return false; 49 } 50 if (obj instanceof XEI) { 51 return (_properties.equals(((XEI)obj)._properties)); 52 } else { 53 return false; 54 } 55 } 56 57 private PjDictionary _properties; 58 private byte[] _imageData; 59 60 } 61 | Popular Tags |