1 57 58 package com.myeis.j2c.importservice.myeis.myeis; 59 60 import java.io.*; 61 62 import javax.resource.cci.InteractionSpec ; 63 import javax.xml.namespace.QName ; 64 65 import org.apache.wsif.providers.jca.toolplugin.*; 66 import org.apache.wsif.providers.jca.WSIFFormatHandler_JCA; 67 68 public class ImportDefinitionFormatHandler implements WSIFFormatHandler_JCA { 69 70 private ImportDefinition fieldImportDefinition = null; 71 72 75 public void read(InputStream inputStream) throws IOException { 76 77 try { 78 ObjectInputStream objectInputStream = new ObjectInputStream(inputStream); 79 this.fieldImportDefinition = 80 (ImportDefinition)objectInputStream.readObject(); 81 } catch (ClassNotFoundException e) { 82 e.printStackTrace(); 83 throw new IOException("class not found !"); 84 } 85 } 86 87 90 public void write(OutputStream outputStream) throws IOException { 91 92 ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream); 93 objectOutputStream.writeObject(this.fieldImportDefinition); 94 objectOutputStream.flush(); 95 } 96 97 100 public Object getElement(String elementName) { 101 return null; 102 } 103 104 107 public void setElement(String elementName, Object element) { 108 } 109 110 113 public Object getElement(String name, int index) { 114 return null; 115 } 116 117 120 public void setElement(String name, int index, Object value) { 121 } 122 123 126 public Object getObjectPart() { 127 return this.fieldImportDefinition; 128 } 129 130 133 public Object getObjectPart(Class sourceClass) { 134 return null; 135 } 136 137 140 public void setObjectPart(Object objectPart) { 141 this.fieldImportDefinition = (ImportDefinition)objectPart; 142 } 143 144 public void setPartQName(QName qname){ 145 } 146 147 public QName getPartQName(){ 148 return null; 149 } 150 public void setInteractionSpec(InteractionSpec is){ 151 152 } 153 154 } 155 156 | Popular Tags |