BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-05-2008, 02:51 PM   #1 (permalink)
New Member
 
Join Date: Aug 2008
Model: curve
PIN: N/A
Carrier: tmobile
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question IO Caching

Please Login to Remove!

I'm working on a blackberry app that reads and writes data from the SDCard unfortunately i can't go into details on it.
My question is, Is there was a way to tell the o.s not to cache the data.
Ie when i do a write i want it written to the sd card immediately, when i do a read i want the data to be read back from the card not from the cache. I understand there will be a performance hit but it's acceptable.

I've done the following:
byte[] mybytes=32;
FileConnection x=(FileConnection)Connector.open("myfile",Connecto r.READ_WRITE);
x.getOutputStream().write(mybytes);
x.getInputStream().read(mybytes);
x.close();

I've tried Flushing the stream, closing FileConnection,the InputsStream and OutputStream b/w io calls however the data is still cached.

Any ideas would be greatly appreciated.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

EX-CELL-O Hydraulic Solenoid Valve 904-97805
$25.0
EX-CELL-O Hydraulic Solenoid Valve 904-97805 pictureLot of 2 Procunier 23271 Solenoid Nipple / Seal - Prepaid Shipping
$12.95
Lot of 2 Procunier 23271 Solenoid Nipple / Seal - Prepaid Shipping   picturelot of 2x lucas ledex 195204-233 9428 tubular pull solenoids (2*U-19)
$35.0
lot of 2x lucas ledex 195204-233 9428 tubular pull solenoids (2*U-19) pictureNNB SIRAI Z530A D344V57 L2 SOLENOID VALVE
$89.99
NNB SIRAI Z530A D344V57 L2 SOLENOID VALVE pictureParker 7321GBN53NMCN0C111P3 Solenoid Valve 3/4" 110-120VAC New
$139.0
Parker 7321GBN53NMCN0C111P3 Solenoid Valve 3/4






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.