source: osm/applications/editors/josm/plugins/opendata/includes/org/j7zip/Common/LockedInStream.java

Last change on this file was 29681, checked in by donvip, 12 years ago

[josm_opendata] .7z archive read support: remove unused code

File size: 573 bytes
Line 
1package org.j7zip.Common;
2
3import org.j7zip.SevenZip.IInStream;
4
5public class LockedInStream {
6 IInStream _stream;
7
8 public LockedInStream() {
9 }
10
11 public void Init(IInStream stream) {
12 _stream = stream;
13 }
14
15 public synchronized int read(long startPos, byte [] data, int off, int size) throws java.io.IOException {
16 // NWindows::NSynchronization::CCriticalSectionLock lock(_criticalSection);
17 _stream.Seek(startPos, IInStream.STREAM_SEEK_SET);
18 return _stream.read(data,off, size);
19 }
20}
Note: See TracBrowser for help on using the repository browser.