Package geomss.geom.reader.iges
Class StartSection
- java.lang.Object
-
- geomss.geom.reader.iges.StartSection
-
public class StartSection extends java.lang.Object
The StartSection class encapsulates the IGES Start Section. There are methods to initialize, read, and dump the object into a String.Modified by: Joseph A. Huwaldt
- Version:
- September 13, 2016
- Author:
- JDN, Version 1.0
-
-
Constructor Summary
Constructors Constructor Description StartSection()Default constructor.StartSection(java.lang.String s)Initialization constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidread(java.io.RandomAccessFile in)Read Start Section from input file.voidsetStartSection(java.lang.String s)Set Start Section string.java.lang.StringtoString()Dump to a String.intwrite(java.io.PrintWriter writer)Write the Start Section to the specified writer.
-
-
-
Constructor Detail
-
StartSection
public StartSection()
Default constructor.
-
StartSection
public StartSection(java.lang.String s)
Initialization constructor.- Parameters:
s- input string
-
-
Method Detail
-
read
public void read(java.io.RandomAccessFile in) throws java.io.IOException
Read Start Section from input file. This method keeps track of how many lines are read in.- Parameters:
in- input file- Throws:
java.io.IOException- if there is any problem reading the start section.
-
write
public int write(java.io.PrintWriter writer) throws java.io.IOException
Write the Start Section to the specified writer.- Parameters:
writer- The PrintWriter to write the Start Section to.- Returns:
- The number of lines written out to the start section.
- Throws:
java.io.IOException- if there is any problem writing the start section.
-
setStartSection
public void setStartSection(java.lang.String s)
Set Start Section string.- Parameters:
s- input string
-
toString
public java.lang.String toString()
Dump to a String.- Overrides:
toStringin classjava.lang.Object- Returns:
- result string
-
-