Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1020605 - saveBinaryFilePart

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2228L) is out of date.

svoid saveBinaryFilePart(S path, long start, byte[] data) {
  saveBinaryFilePart(path, start, data);
}

svoid saveBinaryFilePart(File f, long start, byte[] data) ctex {
  RandomAccessFile raf = newRandomAccessFile(f, "rw");
  try {
    raf.seek(start);
    raf.write(data);
  } finally {
    raf.close();
  }
}

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz

No comments. add comment

Snippet ID: #1020605
Snippet name: saveBinaryFilePart
Eternal ID of this version: #1020605/6
Text MD5: ada837c5c2d4b7e38b1ee7876c4cf0f6
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-17 00:18:05
Source code size: 322 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 108 / 136
Version history: 5 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1020605 & http://1020605.tinybrain.de