| Package | Description |
|---|---|
| es.gob.afirma.mreport.utils |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
PDFUtils.concatPDF(byte[] pdf1,
byte[] pdf2,
java.lang.String identifier1,
java.lang.String identifier2,
java.lang.String rule)
Concatenates the supplied PDF files.
|
static byte[] |
PDFUtils.concatPDFs(java.util.List<byte[]> files)
Methods that concatenates the supplied PDF files to a PDF file.
|
static byte[] |
FOUtils.fo2pdf(byte[] foFile)
Creates a PDF file from a XSL-FO document.
|
static org.w3c.dom.Document |
XMLUtils.getBlankDocument()
Creates a black document.
|
static org.w3c.dom.Document |
XMLUtils.getDocument(byte[] xml)
Gets Document interface that represents the entire HTML or XML document.
|
static org.w3c.dom.Document |
XMLUtils.getDocument(java.io.InputStream in)
Gets Document interface that represents the entire HTML or XML document.
|
static byte[] |
FileUtils.getFile(java.lang.String templatePath)
Method that returns the array of bytes of supplied file.
|
static java.lang.String |
FileUtils.getFileExtension(byte[] file)
Gets the file extension.
|
static java.lang.String |
FileUtils.getFileExtension(java.lang.String mimeType)
Gets the file extension.
|
static java.lang.String |
FileUtils.getMediaType(byte[] document)
Detects the media type of the given document.
|
static org.w3c.dom.NodeList |
XMLUtils.getNodes(org.w3c.dom.Node xml,
java.lang.String xpath)
Get the list of nodes that meet the XPath condition provided.
|
static java.lang.String |
XMLUtils.getNodeValue(org.w3c.dom.Node xml,
java.lang.String xpath)
Get the value of node located in the XPath supplied.
|
static int |
PDFUtils.getNumPages(byte[] document)
Gets the page number of a PDF document.
|
static java.util.List<java.lang.String> |
PDFUtils.getPagesOrientation(byte[] document)
Gets a List of String that represents the orientation of each page.
|
static byte[] |
XMLUtils.getSOAP(javax.xml.soap.SOAPMessage msgSOAP)
Extracts the SOAP message include into
SOAPMessage object. |
static byte[] |
XMLUtils.getXMLBytes(org.w3c.dom.Node xml)
Gets a XML as bytes array.
|
static byte[] |
PDFUtils.imageToPDF(byte[] image)
Method that converts a image file to PDF file.
|
static void |
XMLUtils.includeElementValue(org.w3c.dom.Document xml,
java.lang.String xpath,
java.lang.Object value,
int type)
Method that includes a DOM object into the XML supplied and in the indicated path.
|
static byte[] |
PDFUtils.includePages(byte[] targetPdf,
byte[] originPdf,
MatrixPagesInclude pagesIncl)
Method that creates a PDF file by including a document in another with the specified rules.
|
static boolean |
FileUtils.isXML(byte[] file)
Checks if the supplied file is a valid XML.
|
static void |
XMLUtils.removeNodes(org.w3c.dom.Document xml,
java.util.ArrayList<java.lang.String> nodesToRemove)
This method removes of the XML supplied the nodes indicated.
|
static byte[] |
ImageUtils.rotate(byte[] image,
double angle,
java.lang.String imageFormat)
Method to rotate an image 90,180 or 270 degrees.
|
static byte[] |
FileUtils.toByteArray(java.sql.Blob fromBlob)
Method that obtains a bytes array from a
Blob object. |
static byte[] |
XMLUtils.xslTransform(byte[] xml,
byte[] xslt)
Method that returns the XML result of applying the XSL transformation to the data supplied.
|