1 57 package com.myeis.j2c.importservice.myeis.myeis; 58 59 import java.io.*; 60 61 import javax.resource.cci.InteractionSpec ; 62 63 import org.apache.wsif.providers.jca.toolplugin.*; 64 import org.apache.wsif.providers.jca.WSIFFormatHandler_JCA; 65 66 public class PortTypeArrayFormatHandler implements WSIFFormatHandler_JCA { 67 68 private PortTypeArray fieldPortTypeArray = null; 69 70 73 public void read(InputStream inputStream) throws IOException { 74 75 try { 76 ObjectInputStream objectInputStream = new ObjectInputStream(inputStream); 77 this.fieldPortTypeArray = 78 (PortTypeArray)objectInputStream.readObject(); 79 } catch (ClassNotFoundException e) { 80 e.printStackTrace(); 81 throw new IOException("class not found !"); 82 } 83 } 84 85 88 public void write(OutputStream outputStream) throws IOException { 89 90 ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream); 91 objectOutputStream.writeObject(this.fieldPortTypeArray); 92 objectOutputStream.flush(); 93 } 94 95 98 public Object getElement(String elementName) { 99 return null; 100 } 101 102 105 public void setElement(String elementName, Object element) { 106 } 107 108 111 public Object getElement(String name, int index) { 112 return null; 113 } 114 115 118 public void setElement(String name, int index, Object value) { 119 } 120 121 124 public Object getObjectPart() { 125 return this.fieldPortTypeArray; 126 } 127 128 131 public Object getObjectPart(Class sourceClass) { 132 return null; 133 } 134 135 138 public char getCharPart() { 139 return 0; 140 } 141 142 145 public byte getBytePart() { 146 return 0; 147 } 148 149 152 public short getShortPart() { 153 return 0; 154 } 155 156 159 public int getIntPart() { 160 return 0; 161 } 162 163 166 public long getLongPart() { 167 return 0; 168 } 169 170 173 public float getFloatPart() { 174 return 0; 175 } 176 177 180 public double getDoublePart() { 181 return 0; 182 } 183 184 187 public void setObjectPart(Object objectPart) { 188 this.fieldPortTypeArray = (PortTypeArray) objectPart; 189 } 190 191 194 public void setCharPart(char charPart) { 195 } 196 197 200 public void setBytePart(byte bytePart) { 201 } 202 203 206 public void setShortPart(short shortPart) { 207 } 208 209 212 public void setIntPart(int intPart) { 213 } 214 215 218 public void setLongPart(long longPart) { 219 } 220 221 224 public void setFloatPart(float floatPart) { 225 } 226 227 230 public void setDoublePart(double doublePart) { 231 } 232 233 public void setPartQName(javax.xml.namespace.QName qname){ 234 } 235 236 public javax.xml.namespace.QName getPartQName(){ 237 return null; 238 } 239 public void setInteractionSpec(InteractionSpec is){ 240 241 } 242 243 } 244 245 | Popular Tags |