Changeset 76:5079813a49ef in livinglogic.java.ul4

Show
Ignore:
Timestamp:
06/04/08 20:50:46 (11 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Don't use SXTL_ prefix.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/src/com/livinglogic/sxtl/Template.java

    r75 r76  
    2828    } 
    2929 
    30     public static final String SXTL_HEADER = "ull"; 
    31  
    32     public static final String SXTL_VERSION = "1"; 
     30    public static final String HEADER = "ull"; 
     31 
     32    public static final String VERSION = "1"; 
    3333     
    3434    public String source; 
     
    217217        BufferedReader bufferedReader = new BufferedReader(reader); 
    218218        String header = bufferedReader.readLine(); 
    219         if (!SXTL_HEADER.equals(header)) 
    220         { 
    221             throw new RuntimeException("Invalid header, expected " + SXTL_HEADER + ", got " + header); 
     219        if (!HEADER.equals(header)) 
     220        { 
     221            throw new RuntimeException("Invalid header, expected " + HEADER + ", got " + header); 
    222222        } 
    223223        String version = bufferedReader.readLine(); 
    224         if (!SXTL_VERSION.equals(version)) 
    225         { 
    226             throw new RuntimeException("Invalid version, expected " + SXTL_VERSION + ", got " + version); 
     224        if (!VERSION.equals(version)) 
     225        { 
     226            throw new RuntimeException("Invalid version, expected " + VERSION + ", got " + version); 
    227227        } 
    228228        retVal.source = readstr(bufferedReader, '\'', '"'); 
     
    301301    public void dump(Writer writer) throws IOException 
    302302    { 
    303         writer.write(SXTL_HEADER); 
     303        writer.write(HEADER); 
    304304        writer.write("\n"); 
    305         writer.write("1"); 
     305        writer.write(VERSION); 
    306306        writer.write("\n"); 
    307307        writestr(writer, source, '\'', '"');