xmlattributejava - public XMLAttribute(String nam String...

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

View Full Document Right Arrow Icon
Page 1 of 2 // 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 () { name=null; value=null;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } 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+"\""); } } file://D:\CourseDump\UnZiped\16_410F05U\updated\assn\ps9_supp\XMLAttribute_java. ... 1/12/2006...
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