scala.reflect.io.NoAbstractFile.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spark-core Show documentation
Show all versions of spark-core Show documentation
Shaded version of Apache Spark 2.x.x for Presto
The newest version!
/* NSC -- new Scala compiler
* Copyright 2005-2013 LAMP/EPFL
* @author Paul Phillips
*/
package scala
package reflect
package io
import java.io.InputStream
/** A distinguished object so you can avoid both null
* and Option.
*
* ''Note: This library is considered experimental and should not be used unless you know what you are doing.''
*/
object NoAbstractFile extends AbstractFile {
def absolute: AbstractFile = this
def container: AbstractFile = this
def create(): Unit = ???
def delete(): Unit = ???
def file: java.io.File = null
def input: InputStream = null
def isDirectory: Boolean = false
override def isVirtual: Boolean = true
def iterator: Iterator[AbstractFile] = Iterator.empty
def lastModified: Long = 0L
def lookupName(name: String, directory: Boolean): AbstractFile = null
def lookupNameUnchecked(name: String, directory: Boolean): AbstractFile = null
def name: String = ""
def output: java.io.OutputStream = null
def path: String = ""
override def toByteArray = Array[Byte]()
override def toString = ""
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy