コード例 #1
0
 @Override
 public InputStream getCacheInputStream() throws IOException {
   File file = new File(Settings.getPathPriceData());
   if (file.exists()) {
     return new FileInputStream(file);
   }
   return null;
 }
コード例 #2
0
 @Override
 public OutputStream getCacheOutputStream() throws IOException {
   return new FileOutputStream(Settings.getPathPriceData());
 }