Modifier and Type | Method and Description |
---|---|
static long |
FileIOUtils.copy(java.io.File source,
java.io.File target)
Copies one file to another.
|
static long |
FileIOUtils.copy(java.io.File input,
java.io.File output,
byte[] copyBuffer)
Copies one file to another using the supplied buffer.
|
static int |
FileIOUtils.copy(java.io.InputStream input,
java.io.OutputStream output)
Copy bytes from an
InputStream to an OutputStream . |
static long |
FileIOUtils.copy(java.io.InputStream in,
java.io.OutputStream out,
byte[] copyBuffer)
Copies an
InputStream to an OutputStream using the specified buffer. |
static void |
FileIOUtils.copyFileDir(java.io.File source,
java.io.File target)
Copies one directory or file to another.
|
static long |
FileIOUtils.copyLarge(java.io.InputStream input,
java.io.OutputStream output)
Copies bytes from a large (over 2GB)
InputStream to the specified OutputStream . |
static long |
FileIOUtils.copyLarge(java.io.InputStream input,
java.io.OutputStream output,
long sizeLimit)
Copies bytes from a large (over 2GB)
InputStream to the specified OutputStream . |
static long |
FileIOUtils.copyLarge(java.io.RandomAccessFile input,
java.io.OutputStream output)
Copies bytes from a large (over 2GB)
RandomAccessFile to the specified OutputStream . |
static long |
FileIOUtils.copyLarge(java.io.RandomAccessFile input,
java.io.OutputStream output,
long sizeLimit)
Copies bytes from a large (over 2GB)
RandomAccessFile to the specified OutputStream . |
static java.lang.Object |
ClassUtils.createFromClassName(java.lang.Object caller,
java.lang.String className,
boolean onThread)
Helper method that allows for arbitrary class instantiation.
|
static java.lang.Object |
ClassUtils.createFromClassName(java.lang.Object caller,
java.lang.String className,
java.lang.ClassLoader loader)
Convenience method that allows to create instance of the specified class based on the specified class loader.
|
static void |
JARUtils.createNewJarFromEntriesMap(java.io.File jarFile,
java.util.LinkedHashMap entries)
Creates a JAR file from a
java.util.LinkedHashMap of artifacts. |
static java.io.File |
FileIOUtils.createTempDir(java.io.File parentDir) |
static java.io.File[] |
FileIOUtils.directoryList(java.lang.String dirPath,
java.lang.String fileFilter)
A variation of the method that returns the list of files (only visible files) as an array.
|
static java.util.List |
FileIOUtils.directoryList(java.lang.String dirPath,
java.lang.String fileFilter,
boolean absolute)
Returns a list of files that are the contents of the specified
directory.
|
static java.util.List |
FileIOUtils.directorySublist(java.lang.String dirPath,
boolean absolute)
Returns a list of sub-directories under the specified directory path.
|
static void |
JARUtils.extractJarToDirectory(java.lang.String jarURL,
java.lang.String jarEntry,
java.lang.String outDir,
boolean keepParentDirectory)
Extract resources contained i thef jar (has to be in classpath).
|
static java.util.List |
ClassUtils.findSatisfiableMethodsWithReturnType(java.lang.reflect.Method[] methods,
java.lang.Class returnType,
boolean genericsOk)
Returns a list of methods that match the return type specified.
|
static java.lang.reflect.Field |
ClassUtils.getClassField(java.lang.Class clazz,
java.lang.String fieldName)
Returns field of the particular class.
|
static java.util.Vector |
JARUtils.getClassNamesBySuperFromJarFile(java.lang.String jarFileName,
java.lang.String superClassName)
Obtain a vector of class names that are validated as specific type.
|
static java.util.Vector |
JARUtils.getClassNamesFromJarFile(java.lang.String jarFileName)
This method takes a full pathed JAR File as a parameter and returns an array of
objects that are a list of Classes in the JAR file.
|
static java.util.Vector |
JARUtils.getEntriesFromJarFile(java.lang.String jarFileName)
Returns a list of entry names from a JAR file.
|
static java.util.LinkedHashMap |
JARUtils.getEntriesMapFromJarFile(java.lang.String jarFileName)
Returns a Collection of all entries in a JAR file as
java.util.LinkedHashMap . |
static byte[] |
FileIOUtils.getFile(java.lang.String workingDir,
java.lang.String filename)
Obtains the contents of a file as a
byte[] buffer. |
static byte[] |
FileIOUtils.getFileContent(java.io.File file)
Returns a content of the specified file.
|
static byte[] |
FileIOUtils.getStreamContent(java.io.InputStream stream,
long sizeLimit)
Reads and returns a content of the specified stream.
|
static java.lang.String |
StringUtils.hashEventId(java.lang.String eventId)
Generates a hash value for the
Event Id . |
static java.lang.Object |
ClassUtils.invokeMethod(java.lang.Object methodClass,
java.lang.reflect.Method method)
Invoke a method and return its parameters.
|
static java.lang.Object |
ClassUtils.invokeMethod(java.lang.Object methodClass,
java.lang.reflect.Method method,
java.lang.Object[] parameters)
Invoke a method and return its parameters.
|
static void |
ClassUtils.isAssignable(java.lang.Class superType,
java.lang.Class subType)
Checks that
superType.isAssignableFrom(subType) is true . |
static void |
ClassUtils.isInstanceOf(java.lang.Class clazz,
java.lang.Object obj)
Checks that the provided object is an instance of the provided class.
|
static void |
FileIOUtils.move(java.io.File source,
java.io.File target)
Moves one directory or file to another.
|
static java.io.File |
FileIOUtils.moveToDirWithUniqueName(java.io.File source,
java.io.File destDir)
Moves
source file to destDir directory. |
static java.io.File |
FileIOUtils.newFile(java.lang.String pathName)
Create a file from path name.
|
static java.io.File |
FileIOUtils.newFile(java.net.URI uri)
Create a file based on a URI.
|
static java.io.File |
FileIOUtils.newFileDir(java.lang.String pathName)
Create a file or directory.
|
static java.io.File |
FileIOUtils.openFile(java.lang.String pathName)
Opens a file if it exists.
|
static java.io.File |
FileIOUtils.openFile(java.net.URI uri)
Opens the file that may already exist.
|
static long |
FileIOUtils.processLargeStream(java.io.InputStream input,
long sizeLimit,
FileIOUtils.StreamProcessor processor) |
static long |
FileIOUtils.processStream(java.io.InputStream input,
long sizeLimit,
FileIOUtils.StreamProcessor processor) |
static void |
FileIOUtils.putFile(java.lang.String workingDir,
java.lang.String filename,
byte[] data)
Writes the specified data to the specified file at the specified location.
|
static void |
FileIOUtils.putFile(java.lang.String workingDir,
java.lang.String filename,
byte[] data,
long timeout)
Writes the specified data to the specified file at the specified location.
|
static byte[] |
StringUtils.stringToUTF(java.lang.String str)
Sonverts string to UTF byte array
|
static java.lang.String |
StringUtils.UTFToString(byte[] utf,
int off)
converts UTF byte array to String
|
static java.lang.Class |
ClassUtils.validateFromClassName(java.lang.Object parent,
java.lang.String className,
boolean onThread)
Helper method that resolves the class but does not initialize it.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
HTMLDocument.toJSON(HTMLType htmlType,
boolean nullable,
java.lang.String topElement,
boolean prettyPrint,
java.util.List columnNames,
boolean matches) |
Modifier and Type | Method and Description |
---|---|
void |
FileParserSettings.addOptions(java.util.Map opts) |
Modifier and Type | Method and Description |
---|---|
static SemanticType |
SQLQueryFactory.getSQLParameterType()
Returns an SQL Parameter semantic type.
|
static SemanticType |
SQLQueryFactory.getSQLQueryBatchType()
Returns an SQL Query Batch semantic type.
|
static SemanticType |
SQLQueryFactory.getSQLQueryType()
Returns an SQL Query semantic type.
|
Modifier and Type | Method and Description |
---|---|
static void |
EventPrototypeComparator.compare(java.lang.String eventId1,
java.lang.String eventId2) |
Modifier and Type | Method and Description |
---|---|
byte[] |
AbstractExportImportOperation.Artifact.getData() |
Modifier and Type | Method and Description |
---|---|
static ServiceConfigurationValidator |
ValidatorFactory.createConfigurationValidator(ConfigurationObject sco)
Creates a
Validator instance for a specific Service Configuration |
static EventHandlerValidator |
ValidatorFactory.createEventHandlerValidator(ConfigurationObject sco)
Return an
Event Handler validator for a particular Service Configuration Object . |
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.