3637383940414243444546
if ( hasContent ) { try { properties.store( out ); } catch ( final Exception e ) { throw new IOException( e ); } } if ( path instanceof AttrHolder ) { ( (AttrHolder) path ).getAttrStorage().loadContent( properties );
2324252627282930
@Override public long position() throws IOException { try { return channel.position(); } catch ( java.io.IOException e ) { throw new IOException( e ); } }
3334353637383940
public SeekableByteChannel position( final long newPosition ) throws IOException { try { channel.position( newPosition ); return this; } catch ( java.io.IOException e ) { throw new IOException( e ); } }
4243444546474849
@Override public long size() throws IOException { try { return channel.size(); } catch ( java.io.IOException e ) { throw new IOException( e ); } }
5253545556575859
public SeekableByteChannel truncate( final long size ) throws IOException { try { channel.truncate( size ); return this; } catch ( java.io.IOException e ) { throw new IOException( e ); } }
6162636465666768
@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 ); } }
7071727374757677
@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 ); } }
8485868788899091
@Override public void close() throws java.io.IOException { try { channel.close(); } catch ( java.io.IOException e ) { throw new IOException( e ); } }
172173174175176177178179
throws IllegalArgumentException, UnsupportedOperationException, IOException, SecurityException { checkNotNull( "path", path ); try { return new FileOutputStream( path.toFile() ); } catch ( Exception e ) { throw new IOException( e ); } }
215216217218219220221222
return openAByteChannel( path ); } else { return createANewByteChannel( file ); } } catch ( java.io.IOException e ) { throw new IOException( e ); } }