Migrated package from fr.devinsy.util to fr.devinsy

This commit is contained in:
Christian P. MOMON 2018-05-31 09:15:08 +02:00
parent dfed30a062
commit 64617c5e46
15 changed files with 24 additions and 21 deletions

View file

@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.xml; package fr.devinsy.xml;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;

View file

@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.xml; package fr.devinsy.xml;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;

View file

@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.xml; package fr.devinsy.xml;
import org.slf4j.helpers.MessageFormatter; import org.slf4j.helpers.MessageFormatter;

View file

@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.xml; package fr.devinsy.xml;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.File; import java.io.File;
@ -36,7 +36,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import fr.devinsy.util.strings.StringList; import fr.devinsy.util.strings.StringList;
import fr.devinsy.util.xml.XMLTag.TagType; import fr.devinsy.xml.XMLTag.TagType;
/** /**
* The Class XMLReader. * The Class XMLReader.

View file

@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.xml; package fr.devinsy.xml;
import javax.xml.namespace.QName; import javax.xml.namespace.QName;

View file

@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.xml; package fr.devinsy.xml;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.File; import java.io.File;

View file

@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.xml; package fr.devinsy.xml;
import java.io.File; import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;

View file

@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.xml; package fr.devinsy.xml;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;

View file

@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.xml; package fr.devinsy.xml;
import java.io.File; import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;

View file

@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.xml.demo; package fr.devinsy.xml.demo;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import java.io.IOException; import java.io.IOException;
@ -27,11 +27,11 @@ import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level; import org.apache.log4j.Level;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import fr.devinsy.util.xml.XMLBadFormatException; import fr.devinsy.xml.XMLBadFormatException;
import fr.devinsy.util.xml.XMLReader; import fr.devinsy.xml.XMLReader;
import fr.devinsy.util.xml.XMLTag; import fr.devinsy.xml.XMLTag;
import fr.devinsy.util.xml.XMLTools; import fr.devinsy.xml.XMLTools;
import fr.devinsy.util.xml.XMLWriter; import fr.devinsy.xml.XMLWriter;
/** /**
* The Class XmlDemo. * The Class XmlDemo.

View file

@ -22,7 +22,7 @@ import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLInputFactory; import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.events.XMLEvent; import javax.xml.stream.events.XMLEvent;
import fr.devinsy.util.xml.XMLTools; import fr.devinsy.xml.XMLTools;
/** /**
* The Class Foo contains study code. * The Class Foo contains study code.

View file

@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.xml; package fr.devinsy.xml;
import java.io.File; import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
@ -29,6 +29,9 @@ import org.apache.log4j.Logger;
import org.junit.Before; import org.junit.Before;
import fr.devinsy.util.strings.StringList; import fr.devinsy.util.strings.StringList;
import fr.devinsy.xml.XMLBadFormatException;
import fr.devinsy.xml.XMLReader;
import fr.devinsy.xml.XMLTag;
/** /**
* The Class XMLReaderTest. * The Class XMLReaderTest.

View file

@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-xml. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.xml; package fr.devinsy.xml;
import java.io.ByteArrayOutputStream; import java.io.ByteArrayOutputStream;
import java.io.IOException; import java.io.IOException;
@ -62,10 +62,10 @@ public class XMLWriterTest
@Test @Test
public void testtFoo01() throws XMLStreamException, XMLBadFormatException, IOException public void testtFoo01() throws XMLStreamException, XMLBadFormatException, IOException
{ {
logger.debug(StreamUtils.getBytes(XMLWriter.class.getResourceAsStream("/fr/devinsy/util/xml/foo01.xml")).length); logger.debug(StreamUtils.getBytes(XMLWriter.class.getResourceAsStream("/fr/devinsy/xml/foo01.xml")).length);
// //
String source = new String(StreamUtils.getBytes(XMLWriter.class.getResourceAsStream("/fr/devinsy/util/xml/foo01.xml"))); String source = new String(StreamUtils.getBytes(XMLWriter.class.getResourceAsStream("/fr/devinsy/xml/foo01.xml")));
System.out.println("source=\n" + source); System.out.println("source=\n" + source);