Why braju.jar?
An additional quite old library called "braju" is used from the PDQ library. In contrast with the PDQ library, the braju library is not open source (it is freely available though). This library is commonly used in order to represent the C - like functions: fprintf(), printf() and sprintf() in Java. I don't really understand what is the purpose of using this package in the Java PDQ implementation. I suppose that the only purpose of doing this is to create an as much as relevant and close to the C version, PDQ Java code version.
The API of the Package com.braju.format contains:
Class Summary
Format: This class provides static C-style methods like sprintf(), printf() and fprintf() with variable number of parameters.
Parameters: This class makes it possible to simulate parameter lists to method with arbitrary length.
ParametersAutoClear: This class is an empty class with no extra methods.
Exception Summary
ParseErrorException: Exception thrown when there is an unexpected character or a syntax error in the format string passed to a *printf method.
It is possible that refactoring just the pdq.jar open source code, is going to be enough for creating the demanded functionality of the library, but I can not be sure about it. The truth is that even if it is feasible, an additional effort will be required in order to learn how the braju.jar library works if I still want to use it, but probably, in the case of refactoring, its use is going to be redundant.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment