01: /*
02: * OctectStreamData.java
03: *
04: * Created on 27 November, 2006, 10:05 PM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package com.sun.xml.ws.security.opt.impl.crypto;
11:
12: import javax.xml.crypto.Data;
13: import javax.xml.stream.XMLStreamException;
14: import javax.xml.stream.XMLStreamWriter;
15:
16: /**
17: *
18: * @author K.Venugopal@sun.com
19: */
20: public class OctectStreamData implements Data {
21: private String data = null;
22:
23: /** Creates a new instance of OctectStreamData */
24: public OctectStreamData(String data) {
25: this .data = data;
26: }
27:
28: public void write(XMLStreamWriter writer) throws XMLStreamException {
29: writer.writeCharacters(data);
30: }
31: }
|