BlobSection.java
/**
* BlobSection.java
*
*
* Created: Sun Oct 24 23:48:17 1999
*
* @author David Green
* @version
*/
public class BlobSection extends Section {
private String blob;
public BlobSection(String sect_name) {
super( sect_name );
type = "BlobSection";
blob = "";
}
/**
* give a text representation of section
* @return section
*/
public String toString() {
String s;
// create name and rest of section);
s = "[" + section_name + "]\n" + blob;
return s;
}
/**
* get the entire section as a string glob
* @return section's content
*/
public String getBlob() { return blob; }
/**
* add a line to the blob
* @return true if failure (for whatever reason)
*/
public boolean addLine( String line ) {
blob = blob + line + "\n";
return false;
}
} // BlobSection
Generated by GNU enscript 1.6.1.