Replace read file for FileUtils

Change jaxb mindmap package
Fix failing tests for encodding issues.
This commit is contained in:
Paulo Gustavo Veiga
2012-03-10 16:33:00 -03:00
parent 0660c7e8c3
commit b26f9715ff
21 changed files with 83 additions and 2102 deletions

View File

@@ -57,9 +57,9 @@ public class JAXBUtils {
}
public static void saveMap(@NotNull Object obj, @NotNull OutputStream out, String packag) throws JAXBException {
public static void saveMap(@NotNull com.wisemapping.jaxb.wisemap.Map obj, @NotNull OutputStream out) throws JAXBException {
final JAXBContext context = getInstance(packag);
final JAXBContext context = getInstance("com.wisemapping.jaxb.wisemap");
final Marshaller marshaller = context.createMarshaller();
// get an Apache XMLSerializer configured to generate CDATA
@@ -72,4 +72,11 @@ public class JAXBUtils {
throw new IllegalStateException(e);
}
}
public static void saveMap(@NotNull com.wisemapping.jaxb.freemind.Map map, @NotNull OutputStream out) throws JAXBException {
final JAXBContext context = getInstance("com.wisemapping.jaxb.freemind");
final Marshaller marshaller = context.createMarshaller();
marshaller.marshal(map, out);
}
}