Ignore:
Timestamp:
06/26/19 16:02:00 (5 years ago)
Author:
bln4
Message:

More amendments to the way surrogates are handled. Including renaming classic to primary.

File:
1 edited

Legend:

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

    r1413 r1414  
    4444        private static final String labelProfile = "Profile";
    4545        private static final String labelNone = "None";
    46         protected static final String SURROGATE_TERMINATOR = TERMINATOR + "...";
     46        protected static final char TERMINATOR = 'Z';
     47        protected static final String TERMINATOR_WITH_CONTINUATION = TERMINATOR + "...";
    4748
    4849        public EncryptedExpWriter(String encryptionLabel) {
     
    132133               
    133134                if (toWrite.isSurrogate()) {
    134                         writeLine("SurrogateFor " + toWrite.getClassic().getID());
     135                        writeLine("SurrogateFor " + toWrite.getPrimary().getID());
    135136                }
    136137               
     
    177178                }
    178179               
     180                // write out the surrogates
    179181                List<Item> surrogates = frame.getSurrogateItemsToSave();
    180182                if (!surrogates.isEmpty()) {
     
    242244       
    243245        private void writeSurrogateTerminator() throws IOException {
    244                 writeLine(SURROGATE_TERMINATOR + nl);
     246                writeLine(TERMINATOR_WITH_CONTINUATION + nl);
    245247        }
    246248       
Note: See TracChangeset for help on using the changeset viewer.