Skip to content

io microsphere filter JarEntryFilter

github-actions[bot] edited this page Mar 21, 2026 · 1 revision

JarEntryFilter

Type: Interface | Module: microsphere-java-core | Package: io.microsphere.filter | Since: 1.0.0

Source: microsphere-java-core/src/main/java/io/microsphere/filter/JarEntryFilter.java

Overview

A filter for JarEntry objects. Implementations of this interface can be used to selectively process or ignore entries within a JAR file.

Example Usage

A simple implementation might accept only entries whose names end with a ".class" extension:

`JarEntryFilter classFileFilter = entry -> entry.getName().endsWith(".class");
`

This interface is designed to be used in conjunction with the methods of the java.util.jar.JarFile class and other utilities that process JAR entries.

Declaration

public interface JarEntryFilter extends Filter<JarEntry>

Author: Mercy

Version Information

  • Introduced in: 1.0.0
  • Current Project Version: 0.1.10-SNAPSHOT

Version Compatibility

This component is tested and compatible with the following Java versions:

Java Version Status
Java 8 ✅ Compatible
Java 11 ✅ Compatible
Java 17 ✅ Compatible
Java 21 ✅ Compatible
Java 25 ✅ Compatible

Examples

JarEntryFilter classFileFilter = entry -> entry.getName().endsWith(".class");

Usage

Maven Dependency

Add the following dependency to your pom.xml:

<dependency>
    <groupId>io.github.microsphere-projects</groupId>
    <artifactId>microsphere-java-core</artifactId>
    <version>${microsphere-java.version}</version>
</dependency>

Tip: Use the BOM (microsphere-java-dependencies) for consistent version management. See the Getting Started guide.

Import

import io.microsphere.filter.JarEntryFilter;

See Also

  • JarEntry
  • Filter

This documentation was auto-generated from the source code of microsphere-java.

Home

java-annotations

java-core

jdk-tools

lang-model

annotation-processor

java-test

Clone this wiki locally