org.glassfish.api.deployment.archive.ReadableArchiveAdapter Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2023 Contributors to the Eclipse Foundation
* Copyright (c) 2008, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package org.glassfish.api.deployment.archive;
import java.io.IOException;
import java.net.URI;
import java.util.Collection;
import java.util.Enumeration;
/**
* A lot of methods need to be written in order to implement ReadableArchive. The no-op methods are
* implemented here to make ScatteredWar easier to understand.
*
* @author Byron Nevins
*/
public abstract class ReadableArchiveAdapter implements ReadableArchive {
@Override
public void open(URI arg0) throws IOException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public ReadableArchive getSubArchive(String arg0) throws IOException {
return null;
}
@Override
public boolean delete() {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public boolean renameTo(String arg0) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void close() throws IOException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public long getArchiveSize() throws SecurityException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public boolean exists() {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public Enumeration entries() {
return null;
}
@Override
public Enumeration entries(String prefix) {
return null;
}
@Override
public Collection getDirectories() throws IOException {
return null;
}
@Override
public boolean isDirectory(java.lang.String name) {
return false;
}
@Override
public void setParentArchive(ReadableArchive parentArchive) {
}
@Override
public ReadableArchive getParentArchive() {
return null;
}
@Override
public U getExtraData(Class dataType) {
return null;
}
@Override
public void setExtraData(Class dataType, U instance) {
}
@Override
public void removeExtraData(Class dataType) {
}
@Override
public void addArchiveMetaData(String metaDataKey, Object metaData) {
}
@Override
public T getArchiveMetaData(String metaDataKey, Class metadataType) {
return null;
}
@Override
public void removeArchiveMetaData(String metaDataKey) {
}
}