[JAXB] Marshaller Properties...
JAVA/JAXB / 2009. 7. 2. 14:36
JAXB로 XML을 마셜링 할 때 사용하는 프로퍼티들 입니다.
사용법은 아래와 같습니다.
JAXBContext jaxbInstance = JAXBContext.newInstance(MapPoint.class);
marshaller = jaxbInstance.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
marshaller = jaxbInstance.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
프로퍼티들~ 마지막꺼는 해석이.. 잘 안되네요 ㅋㅋㅋ