- java.lang.Object
-
- jp.cafebabe.kunai.source.AbstractDataSource
-
- jp.cafebabe.kunai.source.ClassFileDataSource
-
- All Implemented Interfaces:
AutoCloseable
,DataSource
,PathResolver
public class ClassFileDataSource extends AbstractDataSource implements PathResolver
-
-
Constructor Summary
Constructors Constructor Description ClassFileDataSource(Path path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
InputStream
openStream(Path path)
ClassName
parseClassName(Path path)
Stream<Entry>
stream()
-
Methods inherited from class jp.cafebabe.kunai.source.AbstractDataSource
base, getLastIndex, getStartIndex, parseClassName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jp.cafebabe.kunai.source.DataSource
filter, forEach
-
Methods inherited from interface jp.cafebabe.kunai.source.PathResolver
resolveClassName
-
-
-
-
Constructor Detail
-
ClassFileDataSource
public ClassFileDataSource(Path path)
-
-
Method Detail
-
stream
public Stream<Entry> stream()
- Specified by:
stream
in interfaceDataSource
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceDataSource
- Throws:
IOException
-
openStream
public InputStream openStream(Path path) throws IOException
- Specified by:
openStream
in interfacePathResolver
- Throws:
IOException
-
parseClassName
public ClassName parseClassName(Path path)
- Specified by:
parseClassName
in interfacePathResolver
-
-