diff options
author | Paul Phillips <paulp@improving.org> | 2012-11-13 08:27:02 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-11-19 11:55:07 -0800 |
commit | 9d4994b96c77d914687433586eb6d1f9e49c520f (patch) | |
tree | 2ccd97878c5f6910b2c493ea362dff01df90de0e /src/reflect/scala/reflect/io/ZipArchive.scala | |
parent | 59c0c5dfce92e0ef70708b95b2712556cdab3623 (diff) | |
download | scala-9d4994b96c77d914687433586eb6d1f9e49c520f.tar.gz scala-9d4994b96c77d914687433586eb6d1f9e49c520f.tar.bz2 scala-9d4994b96c77d914687433586eb6d1f9e49c520f.zip |
Members removed from scala.reflect.io.
Mostly hailing from a long-ago day when I imagined I was
writing a general purpose library. We dodged that bullet.
Diffstat (limited to 'src/reflect/scala/reflect/io/ZipArchive.scala')
-rw-r--r-- | src/reflect/scala/reflect/io/ZipArchive.scala | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/reflect/scala/reflect/io/ZipArchive.scala b/src/reflect/scala/reflect/io/ZipArchive.scala index 3b57721e89..097d3cb71c 100644 --- a/src/reflect/scala/reflect/io/ZipArchive.scala +++ b/src/reflect/scala/reflect/io/ZipArchive.scala @@ -20,13 +20,10 @@ import scala.annotation.tailrec * @author Philippe Altherr (original version) * @author Paul Phillips (this one) * @version 2.0, - * + * * ''Note: This library is considered experimental and should not be used unless you know what you are doing.'' */ object ZipArchive { - def fromPath(path: String): FileZipArchive = fromFile(new JFile(path)) - def fromPath(path: Path): FileZipArchive = fromFile(path.toFile) - /** * @param file a File * @return A ZipArchive if `file` is a readable zip file, otherwise null. @@ -41,7 +38,6 @@ object ZipArchive { * @return A ZipArchive backed by the given url. */ def fromURL(url: URL): URLZipArchive = new URLZipArchive(url) - def fromURL(url: String): URLZipArchive = fromURL(new URL(url)) private def dirName(path: String) = splitPath(path, true) private def baseName(path: String) = splitPath(path, false) @@ -79,7 +75,6 @@ abstract class ZipArchive(override val file: JFile) extends AbstractFile with Eq else Iterator(f) } } - def deepIterator = walkIterator(iterator) /** ''Note: This library is considered experimental and should not be used unless you know what you are doing.'' */ sealed abstract class Entry(path: String) extends VirtualFile(baseName(path), path) { // have to keep this name for compat with sbt's compiler-interface |