Package net.rim.device.api.io

Examples of net.rim.device.api.io.SharedInputStream


        // Open the file for writing
        _saveFile.setReadable(true);

        // Open a shared input stream to the local save file to
        // allow many simultaneous readers.
        final SharedInputStream fileStream =
                SharedInputStream.getSharedInputStream(_saveFile
                        .openInputStream());

        // Begin reading at the beginning of the file
        fileStream.setCurrentPosition(0);

        // If the local file is smaller than the remote file...
        if (_saveFile.fileSize() < _contentConnection.getLength()) {
            // Did not get the entire file, set the system to try again
            _saveFile.setWritable(true);
View Full Code Here

TOP

Related Classes of net.rim.device.api.io.SharedInputStream

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.