A B C D E F G H I M N O P R S T U W X Z
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- add(Map<Package, ClassLoader[]>, Package[], ClassLoader[], Set<String>) - Static method in class io.hawt.util.introspect.support.Packages
- addClassesForPackage(ClassResource, String, Integer, Set<Class<?>>) - Method in class io.hawt.util.introspect.support.ClassScanner
- addClassNamesInDirectoryWithMethodsAnnotatedWith(SortedSet<String>, File, Class<? extends Annotation>, String) - Method in class io.hawt.util.introspect.support.ClassScanner
- addPackageResources(Package, Map<String, ClassResource>, ClassLoader[]) - Method in class io.hawt.util.introspect.support.ClassScanner
- andFilter(FileFilter, FileFilter) - Static method in class io.hawt.util.FileFilters
- apply(T) - Method in interface io.hawt.util.Function
-
Returns the result of applying this function to the parameter value
- assertDirectoryExists(File) - Static method in class io.hawt.util.Files
-
Throws an exception if the given file does not exist
- assertExists(File) - Static method in class io.hawt.util.Files
-
Throws an exception if the given file or directory does not exist
- assertFileExists(File) - Static method in class io.hawt.util.Files
-
Throws an exception if the given file does not exist
B
- BUFFER_SIZE - Static variable in class io.hawt.util.IOHelper
C
- CacheValue - Class in io.hawt.util.introspect.support
- CacheValue() - Constructor for class io.hawt.util.introspect.support.CacheValue
- ClassLoaderProvider - Interface in io.hawt.util.introspect
-
Represents a provider of a
ClassLoader - ClassLoaderProviders - Class in io.hawt.util.introspect
-
Helper class for creating instances of
ClassLoaderProvider - ClassLoaderProviders() - Constructor for class io.hawt.util.introspect.ClassLoaderProviders
- classNameMatches(String, String) - Method in class io.hawt.util.introspect.support.ClassScanner
-
Returns true if the given class name matches the filter search
- ClassResource - Class in io.hawt.util.introspect.support
- ClassResource(String, URL) - Constructor for class io.hawt.util.introspect.support.ClassResource
- ClassScanner - Class in io.hawt.util.introspect.support
-
A helper class to scan classes on the classpath
- ClassScanner(ClassLoader...) - Constructor for class io.hawt.util.introspect.support.ClassScanner
- cleanPath(String) - Static method in class io.hawt.util.Strings
-
Normalizes a path.
- clearCache() - Method in class io.hawt.util.introspect.support.ClassScanner
- close(Closeable, String, Logger) - Static method in class io.hawt.util.IOHelper
-
Closes the given resource if it is available, logging any closing exceptions to the given log.
- Closeables - Class in io.hawt.util
- closeQuietly(Closeable) - Static method in class io.hawt.util.Closeables
- compare(Comparable, Comparable) - Static method in class io.hawt.util.Objects
- copy(File, File) - Static method in class io.hawt.util.Files
- copy(InputStream, OutputStream) - Static method in class io.hawt.util.IOHelper
- copy(Reader, Writer) - Static method in class io.hawt.util.IOHelper
- copy(Reader, Writer, int) - Static method in class io.hawt.util.IOHelper
- createCacheValue(String, ClassResource) - Method in class io.hawt.util.introspect.support.ClassScanner
- createConstantProvider(ClassLoader) - Static method in class io.hawt.util.introspect.ClassLoaderProviders
- createFileFilter(String) - Static method in class io.hawt.util.FileFilters
- createNamespaceFinder() - Static method in class io.hawt.util.XmlHelper
- createParser(SAXParserFactory) - Method in class io.hawt.util.XmlNamespaceFinder
- createReflectionProvider(Object, Method) - Static method in class io.hawt.util.introspect.ClassLoaderProviders
- createZipFile(Logger, File, File) - Static method in class io.hawt.util.Zips
-
Creates a zip fie from the given source directory and output zip file name
- createZipFile(Logger, File, File, FileFilter) - Static method in class io.hawt.util.Zips
D
- destroy() - Method in class io.hawt.util.FileLocker
- destroy() - Method in class io.hawt.util.MBeanSupport
E
- equals(Object, Object) - Static method in class io.hawt.util.Objects
- evaluate(T) - Method in interface io.hawt.util.Predicate
F
- FileFilters - Class in io.hawt.util
-
A number of helper functions for creating
FileFilterobjects on aFileobject. - FileFilters() - Constructor for class io.hawt.util.FileFilters
- FileLocker - Class in io.hawt.util
-
A simple API to a file lock
- FileLocker(File) - Constructor for class io.hawt.util.FileLocker
- Files - Class in io.hawt.util
- Files() - Constructor for class io.hawt.util.Files
- findClass(String) - Method in class io.hawt.util.introspect.support.ClassScanner
-
Finds a class from its name
- findClassNames(String, Integer) - Method in class io.hawt.util.introspect.support.ClassScanner
-
Searches for the available class names given the text search
- findClassNames(Map<Package, ClassLoader[]>, Predicate<String>, Integer) - Method in class io.hawt.util.introspect.support.ClassScanner
- findClassNamesInDirectoryWithMethodAnnotatedWith(File, String) - Method in class io.hawt.util.introspect.support.ClassScanner
- findClassNamesInPackages(String, Integer, Map<Package, ClassLoader[]>) - Method in class io.hawt.util.introspect.support.ClassScanner
- findClassNamesMethodsAnnotatedWith(String) - Method in class io.hawt.util.introspect.support.ClassScanner
- findClassNamesMethodsAnnotatedWith(String, Integer, Map<Package, ClassLoader[]>) - Method in class io.hawt.util.introspect.support.ClassScanner
- findPackagesForClassLoader(ClassLoader) - Static method in class io.hawt.util.introspect.support.Packages
- Function<T,R> - Interface in io.hawt.util
-
When we move to Java 8 we can switch this to be java.util.function.Function
G
- getAddresses() - Static method in class io.hawt.util.Hosts
-
Returns a
SetofInetAddressthat are non-loopback or mac. - getAllClassesMap() - Method in class io.hawt.util.introspect.support.ClassScanner
-
Returns all the classes found in a sorted map
- getClassesForPackage(ClassResource, String, Integer) - Method in class io.hawt.util.introspect.support.ClassScanner
- getClassesMap(Package...) - Method in class io.hawt.util.introspect.support.ClassScanner
-
Returns all the classes found in a sorted map for the given list of packages
- getClassLoader() - Method in interface io.hawt.util.introspect.ClassLoaderProvider
-
Returns the ClassLoader or null if one is not available
- getClassLoaders() - Method in class io.hawt.util.introspect.support.ClassScanner
- getClassNames() - Method in class io.hawt.util.introspect.support.CacheValue
- getDefaultObjectName() - Method in class io.hawt.util.MBeanSupport
- getFactory() - Static method in class io.hawt.util.XmlHelper
- getFactory() - Method in class io.hawt.util.XmlNamespaceFinder
- getIgnorePackages() - Method in class io.hawt.util.introspect.support.ClassScanner
- getJavaResourceKey(URL) - Method in class io.hawt.util.introspect.support.ClassScanner
- getLocalHostName() - Static method in class io.hawt.util.Hosts
-
Returns the local hostname.
- getLocalIp() - Static method in class io.hawt.util.Hosts
-
Returns the local IP.
- getLock(File) - Static method in class io.hawt.util.FileLocker
-
Attempts to grab the lock for the given file, returning a FileLock if the lock has been created; otherwise it returns null
- getMBeanServer() - Method in class io.hawt.util.MBeanSupport
- getMimeType(File) - Static method in class io.hawt.util.Files
- getNamespaces() - Method in class io.hawt.util.XmlNamespaceFinder
- getNamespaces(File) - Static method in class io.hawt.util.XmlHelper
-
Returns the namespace URIs found in the given XML file
- getNamespaces(InputSource) - Static method in class io.hawt.util.XmlHelper
-
Returns the namespace URIs found in the given XML file
- getNetworkInterfaceAddresses(boolean) - Static method in class io.hawt.util.Hosts
- getObjectName() - Method in class io.hawt.util.MBeanSupport
- getPackage(String) - Method in class io.hawt.util.introspect.support.Packages.IntrospectClassLoader
- getPackageMap(List<ClassLoader>, Set<String>) - Static method in class io.hawt.util.introspect.support.Packages
- getPackageName() - Method in class io.hawt.util.introspect.support.ClassResource
- getPackageRelativePath(String) - Method in class io.hawt.util.introspect.support.ClassScanner
- getPackages() - Method in class io.hawt.util.introspect.support.Packages.IntrospectClassLoader
- getRelativePath(File, File) - Static method in class io.hawt.util.Files
- getResource() - Method in class io.hawt.util.introspect.support.ClassResource
- getResources(String, ClassLoader...) - Method in class io.hawt.util.introspect.support.ClassScanner
- getVersion(Class<?>, String, String) - Static method in class io.hawt.util.Objects
-
Returns the version of the given class's package or the group and artifact of the jar
H
- hasAnnotation(AnnotatedElement, Class<? extends Annotation>, boolean) - Static method in class io.hawt.util.ReflectionHelper
-
Checks if a Class or Method are annotated with the given annotation
- hasMethodWithAnnotation(Class<?>, Class<? extends Annotation>, boolean) - Static method in class io.hawt.util.ReflectionHelper
-
Returns true if the given type has a method with the given annotation
- Hosts - Class in io.hawt.util
-
Copied from Fabric8 v1 io.fabric8.utils.HostUtils
I
- init() - Method in class io.hawt.util.MBeanSupport
- IntrospectClassLoader(ClassLoader) - Constructor for class io.hawt.util.introspect.support.Packages.IntrospectClassLoader
- invokeMethod(Method, Object, Object...) - Static method in class io.hawt.util.ReflectionHelper
-
A helper method to invoke a method via reflection and wrap any exceptions as
RuntimeExceptioninstances - io.hawt.util - package io.hawt.util
- io.hawt.util.introspect - package io.hawt.util.introspect
- io.hawt.util.introspect.support - package io.hawt.util.introspect.support
- IOHelper - Class in io.hawt.util
-
A collection of IO helpers
- IOHelper() - Constructor for class io.hawt.util.IOHelper
- isBlank(String) - Static method in class io.hawt.util.Strings
- isNotBlank(String) - Static method in class io.hawt.util.Strings
M
- matches(FileFilter, File) - Static method in class io.hawt.util.Zips
- MBeanSupport - Class in io.hawt.util
-
A helpful base class for MBeans
- MBeanSupport() - Constructor for class io.hawt.util.MBeanSupport
N
- nameEndsWithFilter(String) - Static method in class io.hawt.util.FileFilters
- nameEqualsFilter(String) - Static method in class io.hawt.util.FileFilters
- nameStartsWithFilter(String) - Static method in class io.hawt.util.FileFilters
- newInstance() - Static method in class io.hawt.util.introspect.support.ClassScanner
- newInstance(Class<T>) - Static method in class io.hawt.util.ReflectionHelper
-
A helper method to create a new instance of a type using the default constructor arguments.
O
- Objects - Class in io.hawt.util
-
Some helper methods - though could be replaced by JDK 1.7 code now in java.util.Objects whenever we are happy to ignore JDK 1.6
- Objects() - Constructor for class io.hawt.util.Objects
- optionallyFindAnnotationClass(String) - Method in class io.hawt.util.introspect.support.ClassScanner
- optionallyFindClass(String) - Method in class io.hawt.util.introspect.support.ClassScanner
-
Returns the given class or null if it cannot be loaded
- optionallyFindClasses(Iterable<String>) - Method in class io.hawt.util.introspect.support.ClassScanner
-
Tries to find as many of the class names on the class loaders as possible and return them
P
- Packages - Class in io.hawt.util.introspect.support
- Packages() - Constructor for class io.hawt.util.introspect.support.Packages
- Packages.IntrospectClassLoader - Class in io.hawt.util.introspect.support
- parseContents(InputSource) - Method in class io.hawt.util.XmlNamespaceFinder
- Predicate<T> - Interface in io.hawt.util
-
Evaluates the predicate on the given value
- PREFERED_ADDRESS_PROPERTY_NAME - Static variable in class io.hawt.util.Hosts
- processDirectory(File, String, Set<Class<?>>, String, Integer) - Method in class io.hawt.util.introspect.support.ClassScanner
- processDirectoryClassNames(File, String, Set<String>) - Method in class io.hawt.util.introspect.support.ClassScanner
- processJar(ClassResource, Set<Class<?>>, String, Integer) - Method in class io.hawt.util.introspect.support.ClassScanner
- processJarClassNames(ClassResource, Set<String>) - Method in class io.hawt.util.introspect.support.ClassScanner
R
- readBytes(File) - Static method in class io.hawt.util.Files
-
Reads a
Fileand returns the data as a byte array - readFully(BufferedReader) - Static method in class io.hawt.util.IOHelper
-
Reads the entire reader into memory as a String
- readFully(File) - Static method in class io.hawt.util.IOHelper
- recursiveDelete(File) - Static method in class io.hawt.util.Files
-
Recursively deletes the given file whether its a file or directory returning the number of files deleted
- ReflectionHelper - Class in io.hawt.util
- ReflectionHelper() - Constructor for class io.hawt.util.ReflectionHelper
S
- sanitize(String) - Static method in class io.hawt.util.Strings
-
Strip out any annoying to deal with characters from a string when used as a file or directory name
- sanitizeDirectory(String) - Static method in class io.hawt.util.Strings
-
Also remove any dots in the directory name
- setClassLoaderProvider(String, ClassLoaderProvider) - Method in class io.hawt.util.introspect.support.ClassScanner
-
Registers a named class loader provider or removes it if the classLoaderProvider is null
- setClassNames(SortedSet<String>) - Method in class io.hawt.util.introspect.support.CacheValue
- setFactory(SAXParserFactory) - Static method in class io.hawt.util.XmlHelper
- setFactory(SAXParserFactory) - Method in class io.hawt.util.XmlNamespaceFinder
- setIgnorePackages(Set<String>) - Method in class io.hawt.util.introspect.support.ClassScanner
- setMBeanServer(MBeanServer) - Method in class io.hawt.util.MBeanSupport
- setObjectName(ObjectName) - Method in class io.hawt.util.MBeanSupport
- split(String, String) - Static method in class io.hawt.util.Strings
- startElement(String, String, String, Attributes) - Method in class io.hawt.util.XmlNamespaceFinder
- Strings - Class in io.hawt.util
-
String utility.
- Strings() - Constructor for class io.hawt.util.Strings
- strip(String, String) - Static method in class io.hawt.util.Strings
T
- toString() - Method in class io.hawt.util.FileLocker
- trimString(String, int) - Static method in class io.hawt.util.Strings
- trueFilter() - Static method in class io.hawt.util.FileFilters
- tryFindClass(String, String) - Method in class io.hawt.util.introspect.support.ClassScanner
U
- unzip(InputStream, File) - Static method in class io.hawt.util.Zips
-
Unzips the given input stream of a ZIP to the given directory
W
- webContextPath(String, String...) - Static method in class io.hawt.util.Strings
-
Creates a web context path from components.
- withinLimit(Integer, Collection<?>) - Method in class io.hawt.util.introspect.support.ClassScanner
-
Returns true if we are within the limit value for the number of results in the collection
- write(File, byte[]) - Static method in class io.hawt.util.IOHelper
- write(File, byte[], boolean) - Static method in class io.hawt.util.IOHelper
-
Writes the given data to the file; either in append mode or replace mode depending the append flag
- write(File, String) - Static method in class io.hawt.util.IOHelper
-
Writes the text to the given file, overwriting the previous file if it existed.
- write(File, String, boolean) - Static method in class io.hawt.util.IOHelper
-
Writes the given text to the file; either in append mode or replace mode depending the append flag
X
- XmlHelper - Class in io.hawt.util
-
A helper method to get the namespaces on an XML file
- XmlHelper() - Constructor for class io.hawt.util.XmlHelper
- XmlNamespaceFinder - Class in io.hawt.util
- XmlNamespaceFinder() - Constructor for class io.hawt.util.XmlNamespaceFinder
Z
- zipDirectory(Logger, File, ZipOutputStream, String, FileFilter) - Static method in class io.hawt.util.Zips
-
Zips the directory recursively into the ZIP stream given the starting path and optional filter
- Zips - Class in io.hawt.util
- Zips() - Constructor for class io.hawt.util.Zips
All Classes All Packages