1 57 58 package org.w3._2001.xmlschema.myeis.myeis; 59 60 import java.io.*; 61 import org.apache.wsif.providers.jca.WSIFFormatHandler_JCA; 62 63 64 public class StringFormatHandler implements WSIFFormatHandler_JCA { 65 66 67 private String fieldValue = null; 68 69 70 73 public void read(InputStream inputStream) throws IOException { 74 75 try { 76 ObjectInputStream objectInputStream = new ObjectInputStream(inputStream); 77 this.fieldValue = 78 (String )objectInputStream.readObject(); 79 } catch (ClassNotFoundException e) { 80 e.printStackTrace(); 81 throw new IOException("class not found !"); 82 } 83 } 84 85 86 89 public void write(OutputStream outputStream) throws IOException { 90 91 ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream); 92 objectOutputStream.writeObject(this.fieldValue); 93 objectOutputStream.flush(); 94 } 95 96 97 100 public Object getElement(String elementName) { 101 return null; 102 } 103 104 105 108 public void setElement(String elementName, Object element) { 109 } 110 111 112 115 public Object getElement(String name, int index) { 116 return null; 117 } 118 119 120 123 public void setElement(String name, int index, Object value) { 124 } 125 126 127 130 public Object getObjectPart() { 131 return this.fieldValue; 132 } 133 134 135 138 public Object getObjectPart(Class sourceClass) { 139 return null; 140 } 141 142 143 146 public char getCharPart() { 147 return 0; 148 } 149 150 151 154 public byte getBytePart() { 155 return 0; 156 } 157 158 159 162 public short getShortPart() { 163 return 0; 164 } 165 166 167 170 public int getIntPart() { 171 return 0; 172 } 173 174 175 178 public long getLongPart() { 179 return 0; 180 } 181 182 183 186 public float getFloatPart() { 187 return 0; 188 } 189 190 191 194 public double getDoublePart() { 195 return 0; 196 } 197 198 199 202 public void setObjectPart(Object objectPart) { 203 this.fieldValue = (String )objectPart; 204 } 205 206 207 210 public void setCharPart(char charPart) { 211 } 212 213 214 217 public void setBytePart(byte bytePart) { 218 } 219 220 221 224 public void setShortPart(short shortPart) { 225 } 226 227 228 231 public void setIntPart(int intPart) { 232 } 233 234 235 238 public void setLongPart(long longPart) { 239 } 240 241 242 245 public void setFloatPart(float floatPart) { 246 } 247 248 249 252 public void setDoublePart(double doublePart) { 253 } 254 255 public void setPartQName(javax.xml.namespace.QName qname){ 256 } 257 258 public javax.xml.namespace.QName getPartQName(){ 259 return null; 260 } 261 262 public void setInteractionSpec(javax.resource.cci.InteractionSpec is){ 263 264 } 265 } 266 267 268 | Popular Tags |