javacommons/fileutils/javasrc/com/nokia/mj/impl/fileutils/FileStreamHandler.java
changeset 78 71ad690e91f5
parent 21 2a9601315dfc
equal deleted inserted replaced
72:1f0034e370aa 78:71ad690e91f5
   238                                            int aLength) throws IOException
   238                                            int aLength) throws IOException
   239     {
   239     {
   240         _writeData(iNativeHandle, aBytes, aOffset, aLength);
   240         _writeData(iNativeHandle, aBytes, aOffset, aLength);
   241     }
   241     }
   242 
   242 
       
   243     protected void flush()
       
   244     {
       
   245         _flush(iNativeHandle);
       
   246     }
       
   247     
   243     /**
   248     /**
   244      * Closes all output streams.
   249      * Closes all output streams.
   245      *
   250      *
   246      */
   251      */
   247     protected void closeOutputStreams()
   252     protected void closeOutputStreams()
   330                                  int aLength);
   335                                  int aLength);
   331 
   336 
   332     private native void _writeData(int aNativePeer, byte[] aBytes, int aOffset,
   337     private native void _writeData(int aNativePeer, byte[] aBytes, int aOffset,
   333                                    int aLength);
   338                                    int aLength);
   334 
   339 
       
   340     private native void _flush(int aNativePeer);
       
   341 
   335     private native void _closeFileStream(int aHandle);
   342     private native void _closeFileStream(int aHandle);
   336 
   343 
   337     private native void _openFileForReading(int aHandle);
   344     private native void _openFileForReading(int aHandle);
   338 
   345 
   339     private native void _openFileForWriting(int aHandle, long aOffset);
   346     private native void _openFileForWriting(int aHandle, long aOffset);