Examples of checkCurrent()


Examples of bibliothek.util.Version.checkCurrent()

     * @param in the stream to read from
     * @throws IOException if the operation can't be completed
     */
    public void readStream( DataInputStream in ) throws IOException{
        Version version = Version.read( in );
        version.checkCurrent();
       
        int size = in.readInt();
        for( int i = 0; i < size; i++ ){
            String key = in.readUTF();
           
View Full Code Here

Examples of bibliothek.util.Version.checkCurrent()

     * @param in the stream to read from
     * @throws IOException if <code>in</code> can't be read
     */
    public void read( DataInputStream in ) throws IOException {
        Version version = Version.read( in );
        version.checkCurrent();
       
        if( version.equals( Version.VERSION_1_0_4 )){
          int index = in.readInt();
          if( !hasRead || !allowReadOnlyOnce ){
              if( index >= 0 && index < size()+2 ){
View Full Code Here

Examples of bibliothek.util.Version.checkCurrent()

     * @param in the stream to read from
     * @throws IOException if an I/O-error occurs
     */
    public void read( DataInputStream in ) throws IOException{
        Version version = Version.read( in );
        version.checkCurrent();
       
        boolean version7 = Version.VERSION_1_0_7.compareTo( version ) >= 0;
        if( version7 ){
          Version.read( in );
        }
View Full Code Here

Examples of bibliothek.util.Version.checkCurrent()

        // not supported
    }
   
    public CommonMultipleDockableLayout read( DataInputStream in, PlaceholderStrategy placeholders ) throws IOException {
        Version version = Version.read( in );
        version.checkCurrent();
       
        CommonMultipleDockableLayout layout = new CommonMultipleDockableLayout();
        layout.setLayout( delegate.create() );
        layout.getLayout().readStream( in );
        layout.setId( in.readUTF() );
View Full Code Here

Examples of bibliothek.util.Version.checkCurrent()

   
    @Override
    public void read( DockSituation situation, PropertyTransformer transformer, boolean entry, DataInputStream in ) throws IOException {
       
        Version version = Version.read( in );
        version.checkCurrent();
       
        boolean version7 = version.compareTo( Version.VERSION_1_0_7 ) >= 0;
        boolean version11 = version.compareTo( Version.VERSION_1_1_1 ) >= 0;
       
        super.read( situation, transformer, entry, in );
View Full Code Here

Examples of bibliothek.util.Version.checkCurrent()

    public void read( DataInputStream in ) throws IOException {
        Version version = Version.read( in );
        if( Version.VERSION_1_1_1.compareTo( version ) > 0 ){
          throw new IOException( "The perspective API cannot read files which were written before version 1.1.1" );
        }
        version.checkCurrent();
        settings = getFrontend().readBlop( in );
    }
   
    public void writeXML( XElement element ) {
        getFrontend().writeBlopXML( settings, element.addElement( "frontend" ) );
View Full Code Here

Examples of bibliothek.util.Version.checkCurrent()

                    Version.write( out, Version.VERSION_1_1_1 );
                    frontend.write( out );
                }
                public void read( DataInputStream in ) throws IOException {
                    Version version = Version.read( in );
                    version.checkCurrent();
                    if( Version.VERSION_1_1_1.compareTo( version ) > 0 && Version.VERSION_1_0_4.compareTo( version ) <= 0 ){
                      readWorkingAreas( in );
                    }
                    frontend.read( in );
                }
View Full Code Here

Examples of bibliothek.util.Version.checkCurrent()

            });

            resources.put( "ccontrol.preferences", new ApplicationResource(){
                public void read( DataInputStream in ) throws IOException {
                    Version version = Version.read( in );
                    version.checkCurrent();
                    preferences.read( in );

                    if( preferenceModel != null ){
                        preferences.load( preferenceModel, false );
                        preferenceModel.write();
View Full Code Here

Examples of bibliothek.util.Version.checkCurrent()

                    Version.write( out, Version.VERSION_1_0_4 );
                    getList().write( out );
                }
                public void read( DataInputStream in ) throws IOException {
                    Version version = Version.read( in );
                    version.checkCurrent();
                    getList().read( in );
                }
                public void writeXML( XElement element ) {
                    getList().writeXML( element );
                }
View Full Code Here

Examples of bibliothek.util.Version.checkCurrent()

        transformer.write( element.getLocation(), out );
    }

    public Location readProperty( DataInputStream in ) throws IOException {
        Version version = Version.read( in );
        version.checkCurrent();
        boolean version8 = Version.VERSION_1_0_8.compareTo( version ) <= 0;
        Path mode = null;
        if( version8 ){
          mode = new Path( in.readUTF() );
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.