title: RandomAccessFile from ZipEntry (java)
body: <p>I was looking for something about reading zip-archives via RandomAccessFile. So, I found this example: <a href="http://www.java2s.com/Code/JavaAPI/java.io/RandomAccessFilereadLine.htm" rel="nofollow noreferrer">http://www.java2s.com/Code/JavaAPI/java.io/RandomAccessFilereadLine.htm</a>
  However it doesn't work for me, it tells that there's no such file or directory, but the file-path is right. Is this example incorrect?</p>
  <p>UPDATE: from docs.oracle.com:</p>
  <blockquote>
  <p><code>RandomAccessFile(String name, String mode)</code></p>
  <p>Creates a random access file stream to read from, and optionally to write to, a file with the specified name.</p>
  </blockquote>
  <p>It's weird that they try to create RAF with entryName as a &quot;name&quot; parameter in this example</p>
  <p>There's one more example with the same thing: <a href="http://www.java-tips.org/java-se-tips/java.util.zip/how-to-read-files-within-a-zip-file-3.html" rel="nofollow noreferrer">http://www.java-tips.org/java-se-tips/java.util.zip/how-to-read-files-within-a-zip-file-3.html</a></p>