2_XMLAttribute

2_XMLAttribute - { name=null; value=null; } public...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// Date: 4/25/02 // Author: Paul Robertson, Copyright (c) DOLL, Inc. // File: XMLAttribute.java // Description: XML Basic stream I/O support // Stream for reading and writing XML package mit16_410_13; import java.util.Vector; import java.io.InputStream; import java.io.PrintStream; import java.io.EOFException; import java.io.IOException; import java.io.FileInputStream; public class XMLAttribute { String name; String value; public XMLAttribute ()
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { name=null; value=null; } public XMLAttribute (String nam, String val) { name=nam; value=val; } public String getName () { return name; } public String getValue () { return value; } void setName (String nam) { name=nam; } void setValue (String val) { value=val; } public void writeAttribute (XMLStream strm) { PrintStream ostrm=strm.getPrintStream(); ostrm.print(name+"=\""+value+"\""); } }...
View Full Document

This note was uploaded on 11/07/2011 for the course AERO 16.410 taught by Professor Brianwilliams during the Fall '05 term at MIT.

Ask a homework question - tutors are online