public interface ResourceProcessor
ResourceFinder
.Modifier and Type | Method and Description |
---|---|
boolean |
accept(String name)
Accept a scanned resource.
|
void |
process(String name,
InputStream in)
Process a scanned resource.
|
boolean accept(String name)
name
- the resource name.void process(String name, InputStream in) throws IOException
This method will be invoked after the listener has accepted the resource.
name
- the resource name.in
- the input stream of the resourceIOException
- if an error occurs when processing the resource.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.