@@ -49,23 +49,19 @@ public class BillServiceXMLFileAnalyzer implements BillServiceFileAnalyzer {
4949
5050 private final XmlContent xmlContent ;
5151
52- public BillServiceXMLFileAnalyzer (File file , CompanyURLs urLs )
53- throws IOException , ParserConfigurationException , UnsupportedXMLFileException , SAXException {
52+ public BillServiceXMLFileAnalyzer (File file , CompanyURLs urLs ) throws IOException , ParserConfigurationException , UnsupportedXMLFileException , SAXException {
5453 this (file .toPath (), urLs );
5554 }
5655
57- public BillServiceXMLFileAnalyzer (Path path , CompanyURLs urLs )
58- throws IOException , ParserConfigurationException , UnsupportedXMLFileException , SAXException {
56+ public BillServiceXMLFileAnalyzer (Path path , CompanyURLs urLs ) throws IOException , ParserConfigurationException , UnsupportedXMLFileException , SAXException {
5957 this (Files .readAllBytes (path ), urLs );
6058 }
6159
62- public BillServiceXMLFileAnalyzer (InputStream is , CompanyURLs urLs )
63- throws IOException , ParserConfigurationException , UnsupportedXMLFileException , SAXException {
60+ public BillServiceXMLFileAnalyzer (InputStream is , CompanyURLs urLs ) throws IOException , ParserConfigurationException , UnsupportedXMLFileException , SAXException {
6461 this (IOUtils .readBytesFromStream (is ), urLs );
6562 }
6663
67- public BillServiceXMLFileAnalyzer (byte [] file , CompanyURLs urls )
68- throws ParserConfigurationException , IOException , SAXException , UnsupportedXMLFileException {
64+ public BillServiceXMLFileAnalyzer (byte [] file , CompanyURLs urls ) throws ParserConfigurationException , IOException , SAXException , UnsupportedXMLFileException {
6965 this .xmlContent = XmlContentProvider .getSunatDocument (new ByteArrayInputStream (file ));
7066
7167 if (xmlContent .getDocumentType ().equals (DocumentType .VOIDED_DOCUMENT )) {
@@ -166,7 +162,7 @@ private static Optional<String> getFileNameWithoutExtension(XmlContent xmlConten
166162 return Optional .ofNullable (result );
167163 }
168164
169- private static Optional <BillServiceDestination > getFileDeliveryTarget (CompanyURLs urls , XmlContent xmlContent ) {
165+ public static Optional <BillServiceDestination > getFileDeliveryTarget (CompanyURLs urls , XmlContent xmlContent ) {
170166 BillServiceDestination fileDeliveryTarget = null ;
171167
172168 switch (xmlContent .getDocumentType ()) {
@@ -210,7 +206,7 @@ private static Optional<BillServiceDestination> getFileDeliveryTarget(CompanyURL
210206 return Optional .ofNullable (fileDeliveryTarget );
211207 }
212208
213- private static Optional <BillServiceDestination > getTicketDeliveryTarget (
209+ public static Optional <BillServiceDestination > getTicketDeliveryTarget (
214210 CompanyURLs urls ,
215211 XmlContent xmlContent
216212 ) {
0 commit comments