Package org.uberfire.java.nio

Examples of org.uberfire.java.nio.IOException


            if ( hasContent ) {
                try {
                    properties.store( out );
                } catch ( final Exception e ) {
                    throw new IOException( e );
                }
            }

            if ( path instanceof AttrHolder ) {
                ( (AttrHolder) path ).getAttrStorage().loadContent( properties );
View Full Code Here


    @Override
    public long position() throws IOException {
        try {
            return channel.position();
        } catch ( java.io.IOException e ) {
            throw new IOException( e );
        }
    }
View Full Code Here

    public SeekableByteChannel position( final long newPosition ) throws IOException {
        try {
            channel.position( newPosition );
            return this;
        } catch ( java.io.IOException e ) {
            throw new IOException( e );
        }
    }
View Full Code Here

    @Override
    public long size() throws IOException {
        try {
            return channel.size();
        } catch ( java.io.IOException e ) {
            throw new IOException( e );
        }
    }
View Full Code Here

    public SeekableByteChannel truncate( final long size ) throws IOException {
        try {
            channel.truncate( size );
            return this;
        } catch ( java.io.IOException e ) {
            throw new IOException( e );
        }
    }
View Full Code Here

    @Override
    public int read( final ByteBuffer dst ) throws java.io.IOException {
        try {
            return channel.read( dst );
        } catch ( java.io.IOException e ) {
            throw new IOException( e );
        }
    }
View Full Code Here

    @Override
    public int write( final ByteBuffer src ) throws java.io.IOException {
        try {
            return channel.write( src );
        } catch ( java.io.IOException e ) {
            throw new IOException( e );
        }
    }
View Full Code Here

    @Override
    public void close() throws java.io.IOException {
        try {
            channel.close();
        } catch ( java.io.IOException e ) {
            throw new IOException( e );
        }
    }
View Full Code Here

            throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException {
        checkNotNull( "path", path );
        try {
            return new FileOutputStream( path.toFile() );
        } catch ( Exception e ) {
            throw new IOException( e );
        }
    }
View Full Code Here

                return openAByteChannel( path );
            } else {
                return createANewByteChannel( file );
            }
        } catch ( java.io.IOException e ) {
            throw new IOException( e );
        }
    }
View Full Code Here

TOP

Related Classes of org.uberfire.java.nio.IOException

Copyright © 2018 www.massapicom. 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.