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

org.avaje.glue.jetty.NoResource Maven / Gradle / Ivy

There is a newer version: 1.2
Show newest version
package org.avaje.glue.jetty;

import org.eclipse.jetty.util.resource.Resource;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.channels.ReadableByteChannel;

class NoResource extends Resource {
  @Override
  public boolean isContainedIn(Resource resource) throws MalformedURLException {
    return false;
  }

  @Override
  public void close() {

  }

  @Override
  public boolean exists() {
    return false;
  }

  @Override
  public boolean isDirectory() {
    return false;
  }

  @Override
  public long lastModified() {
    return 0;
  }

  @Override
  public long length() {
    return 0;
  }

  @Override
  public URL getURL() {
    return null;
  }

  @Override
  public File getFile() throws IOException {
    return null;
  }

  @Override
  public String getName() {
    return null;
  }

  @Override
  public InputStream getInputStream() throws IOException {
    return null;
  }

  @Override
  public ReadableByteChannel getReadableByteChannel() throws IOException {
    return null;
  }

  @Override
  public boolean delete() throws SecurityException {
    return false;
  }

  @Override
  public boolean renameTo(Resource resource) throws SecurityException {
    return false;
  }

  @Override
  public String[] list() {
    return new String[0];
  }

  @Override
  public Resource addPath(String s) throws IOException, MalformedURLException {
    return this;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy