All Downloads are FREE. Search and download functionalities are using the official Maven repository.

asset.pipeline.grails.fs.EmptyResource.groovy Maven / Gradle / Ivy

There is a newer version: 6.2.0-M2
Show newest version
package asset.pipeline.grails.fs

import org.springframework.core.io.Resource

class EmptyResource implements Resource {

	boolean exists() {
		return false
	}

	Resource createRelative(String relativePath) {}

	String getDescription() {}

	File getFile() {}

	String getFilename() {}

	URI getURI() {}

	URL getURL() {}

	InputStream getInputStream() {}

	boolean isOpen() {
		return false
	}
	boolean isReadable() {
		return false
	}

	long contentLength() {
		return 0
	}

	long lastModified() {
		return 0
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy