Ignore:
Timestamp:
11/19/13 12:01:52 (11 years ago)
Author:
jts21
Message:

New copy/paste handling, add pdfImporter, add dictionary and documentation to resources, other small changes

Location:
trunk/src/org/expeditee/io
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/ExpReader.java

    r427 r504  
    4646         * @return true if s begins with a tag
    4747         */
    48         private static boolean isValidLine(String s) {
     48        protected static boolean isValidLine(String s) {
    4949                return s.length() >= 2 && s.charAt(1) == ' '
    5050                                && Character.isLetter(s.charAt(0));
     
    184184         *            The line of text read in from the file to process.
    185185         */
    186         private void processBodyLine(Item item, String line) {
     186        protected void processBodyLine(Item item, String line) {
    187187                // separate the tag from the value
    188188                Character tag = getTag(line);
     
    203203        }
    204204
    205         private static Character getTag(String line) {
     205        protected static Character getTag(String line) {
    206206                assert (line.length() > 0);
    207207                return line.charAt(0);
    208208        }
    209209
    210         private static String getValue(String line) {
     210        protected static String getValue(String line) {
    211211                if (line.length() > 2)
    212212                        return line.substring(2);
     
    250250
    251251        // Returns a point from a String containing two ints separated by a space
    252         private java.awt.Point separateValues(String line) {
     252        protected java.awt.Point separateValues(String line) {
    253253                int x = Integer.parseInt(line.substring(0, line.indexOf(" ")));
    254254                int y = Integer.parseInt(line.substring(line.indexOf(" ") + 1));
  • trunk/src/org/expeditee/io/ExpWriter.java

    r362 r504  
    3131        private ProxyWriter _writer = null;
    3232
    33         private StringBuilder _stringWriter = null;
     33        protected StringBuilder _stringWriter = null;
    3434
    3535        private static final char TERMINATOR = 'Z';
     
    130130        }
    131131
    132         private void writeTerminator() throws IOException {
     132        protected void writeTerminator() throws IOException {
    133133                writeLine(TERMINATOR + "\n");
    134134        }
    135135
    136136        // writes the given line out to the file
    137         private void writeLine(String line) throws IOException {
     137        protected void writeLine(String line) throws IOException {
    138138                // do not write empty lines
    139139                if (line == null)
     
    152152                        return;
    153153
     154                writeItemAlways(item);
     155        }
     156       
     157        protected void writeItemAlways(Item item) throws IOException {
    154158                if (item.isLineEnd())
    155159                        writeLineEnd(item);
     
    173177
    174178        // writes out all lines to the file
    175         private void writeLineData() throws IOException {
     179        protected void writeLineData() throws IOException {
    176180                List<Line> seen = new LinkedList<Line>();
    177181
     
    206210
    207211        // writes out any constraints to the file
    208         private void writeConstraintData() throws IOException {
     212        protected void writeConstraintData() throws IOException {
    209213                // outputs any constraints the points have
    210214
Note: See TracChangeset for help on using the changeset viewer.