当前位置:  编程技术>c/c++/嵌入式

深入jaxb xjc编码问题的详细介绍

    来源: 互联网  发布时间:2014-10-14

    本文导语:  平时喜欢根据写一个xjc批处理命令,根据xsd批量生成java类,觉得很方便也很酷。但是有时候xsd生成的java类中含有汉字,结果总是有些问题。可是xjc命令参数又没有encoding参数之类的。在网上搜了一通,忽然发现了一个好东东...

平时喜欢根据写一个xjc批处理命令,根据xsd批量生成java类,觉得很方便也很酷。但是有时候xsd生成的java类中含有汉字,结果总是有些问题。
可是xjc命令参数又没有encoding参数之类的。在网上搜了一通,忽然发现了一个好东东:xjc是由com.sun.tools.internal.xjc.Driver实现的,因此
批处理命令可以如下:
java -Dfile.encoding=UTF-8 -cp D:javajdk1.6.0_03libtools.jar com.sun.tools.internal.xjc.Driver  -p com.geostar.csw.domain.layer   metadata_geo_Layer.xsd
结果:
代码如下:

parsing a schema...
compiling a schema...
comgeostarcswdomainlayerAbstractMDContentInformationType.java
comgeostarcswdomainlayerAbstractMDIdentificationType.java
comgeostarcswdomainlayerAbstractMDSpatialRepresentationType.java
comgeostarcswdomainlayerCIAddressType.java
comgeostarcswdomainlayerCICitationType.java
comgeostarcswdomainlayerCIContactType.java
comgeostarcswdomainlayerCIDateType.java
comgeostarcswdomainlayerCIDateTypeCode.java
comgeostarcswdomainlayerCIOnLineFunctionCode.java
comgeostarcswdomainlayerCIOnLineResourceType.java
comgeostarcswdomainlayerCIResponsiblePartyType.java
comgeostarcswdomainlayerCIRoleCode.java
comgeostarcswdomainlayerDQDataLineageType.java
comgeostarcswdomainlayerDQDataQualityType.java
comgeostarcswdomainlayerDQDqReportType.java
comgeostarcswdomainlayerDQDqStatementType.java
comgeostarcswdomainlayerDQSourceType.java
comgeostarcswdomainlayerDSAssociationTypeCode.java
comgeostarcswdomainlayerEXBoundingCoordinatesType.java
comgeostarcswdomainlayerEXExtentType.java
comgeostarcswdomainlayerEXGeographicBoundingBoxType.java
comgeostarcswdomainlayerEXGeographicBoundingPolygonType.java
comgeostarcswdomainlayerEXGeographicDescriptionType.java
comgeostarcswdomainlayerEXGeographicExtentPropertyType.java
comgeostarcswdomainlayerEXGeographicExtentType.java
comgeostarcswdomainlayerEXTemporalExtentPropertyType.java
comgeostarcswdomainlayerEXTemporalExtentType.java
comgeostarcswdomainlayerEXVerticalExtentType.java
comgeostarcswdomainlayerFBZY.java
comgeostarcswdomainlayerJHDA.java
comgeostarcswdomainlayerMDAerialImageIdentificationType.java
comgeostarcswdomainlayerMDAggregateInfomationPropertyType.java
comgeostarcswdomainlayerMDAggregateInfomationType.java
comgeostarcswdomainlayerMDAnalogMapIdentificationType.java
comgeostarcswdomainlayerMDApprovedTypeCode.java
comgeostarcswdomainlayerMDArchiveIdentificationType.java
comgeostarcswdomainlayerMDBrowseGraphicType.java
comgeostarcswdomainlayerMDCRSType.java
comgeostarcswdomainlayerMDCharacterSetCode.java
comgeostarcswdomainlayerMDClassificationCode.java
comgeostarcswdomainlayerMDConstraintsPropertyType.java
comgeostarcswdomainlayerMDContentInformationPropertyType.java
comgeostarcswdomainlayerMDCoverageContentTypeCode.java
comgeostarcswdomainlayerMDCoverageDescriptionType.java
comgeostarcswdomainlayerMDDataIdentificationType.java
comgeostarcswdomainlayerMDDescKeys.java
comgeostarcswdomainlayerMDDigitalArchiveIdentificationType.java
comgeostarcswdomainlayerMDDistributionType.java
comgeostarcswdomainlayerMDDistributorType.java
comgeostarcswdomainlayerMDEllipsoidParametersType.java
comgeostarcswdomainlayerMDFeatureCatalogueDescriptionType.java
comgeostarcswdomainlayerMDFormatType.java
comgeostarcswdomainlayerMDGeometricObjectTypeCode.java
comgeostarcswdomainlayerMDGovNameTypeBak.java
comgeostarcswdomainlayerMDGridSpatialRepresentationType.java
comgeostarcswdomainlayerMDIdentificationPropertyType.java
comgeostarcswdomainlayerMDIdentifierType.java
comgeostarcswdomainlayerMDImageDescriptionType.java
comgeostarcswdomainlayerMDImageIdentificationType.java
comgeostarcswdomainlayerMDImagingConditionCode.java
comgeostarcswdomainlayerMDLegConstsType.java
comgeostarcswdomainlayerMDMaintInformationType.java
comgeostarcswdomainlayerMDMaintenanceFrequencyCode.java
comgeostarcswdomainlayerMDMapFormCode.java
comgeostarcswdomainlayerMDMetadataType.java
comgeostarcswdomainlayerMDProgressCode.java
comgeostarcswdomainlayerMDProjectionParametersType.java
comgeostarcswdomainlayerMDReferenceSystemType.java
comgeostarcswdomainlayerMDReferencedThemeType.java
comgeostarcswdomainlayerMDResolutionType.java
comgeostarcswdomainlayerMDResourceTypeCode.java
comgeostarcswdomainlayerMDRestrictionCode.java
comgeostarcswdomainlayerMDRestrictionCodeEx.java
comgeostarcswdomainlayerMDScopeCode.java
comgeostarcswdomainlayerMDSecurityConstraintsType.java
comgeostarcswdomainlayerMDSpatialRepresentationPropertyType.java
comgeostarcswdomainlayerMDSpatialRepresentationTypeCode.java
comgeostarcswdomainlayerMDTopicCategoryCode.java
comgeostarcswdomainlayerMDTopoLogyLevelCode.java
comgeostarcswdomainlayerMDTpCatType.java
comgeostarcswdomainlayerMDVectorSpatialRepresentationType.java
comgeostarcswdomainlayerObjectFactory.java
comgeostarcswdomainlayerSVOperationMetadataType.java
comgeostarcswdomainlayerSVServiceIdentificationType.java
comgeostarcswdomainlayerSpatialReferenceInfo.java
comgeostarcswdomainlayerTBOOL.java
comgeostarcswdomainlayerTDYTABLETYPE.java
comgeostarcswdomainlayerTDataInfo.java
comgeostarcswdomainlayerTJHSJ.java
comgeostarcswdomainlayerTJHTYPE.java
comgeostarcswdomainlayerTJHXX.java
comgeostarcswdomainlayerTLAYERTYPE.java
comgeostarcswdomainlayerTMInstantType.java
comgeostarcswdomainlayerTMPeriodType.java
comgeostarcswdomainlayerTMetaInfo.java
comgeostarcswdomainlayerTMetaTotal.java
comgeostarcswdomainlayerTTABLETYPE.java
comgeostarcswdomainlayerTTHMEATICTYPE.java
comgeostarcswdomainlayerTUPDATETYPE.java
comgeostarcswdomainlayerTUserInfo.java
comgeostarcswdomainlayerTVersionInfo.java
comgeostarcswdomainlayerTZDGL.java
comgeostarcswdomainlayerTZDJH.java
comgeostarcswdomainlayerUpdateDescribe.java
comgeostarcswdomainlayerpackage-info.java
c:Catalog实体类生成工具>
忽然感觉好兴奋!jaxb真的是好东东!

    
 
 
 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • Docker支持更深入的容器日志分析
  • 关于《深入浅出MFC》
  • Linux有没有什么好的高级的书,我要深入,
  • 深入理解linux内核
  • [100分]有没有关于binutils的深入的资料?或者深入底层的资料?
  • 深入理解PHP内核 TIPI
  • 想深入学习Java应该学习哪些东西
  • 哪位有《JSP深入编程》电子版?
  • 想要深入学习LINUX该学什么?
  • 100分求:哪儿有《深入理解linux内核》可供下哉!
  • 如何深入Linux的内核学习?
  • U-BOOT得掌握到什么程序,用不用深入去学
  • 想深入了解操作系统该怎么做
  • 想深入了解操作系统该怎么做 iis7站长之家
  • 问一个《深入理解计算机系统》中的问题
  • 深入多线程之:深入分析Interlocked
  • ##想买书深入学习linux下的编程,请指教
  • 深入JDBC sqlserver连接写法的详解
  • 深入oracle特定信息排序的分析
  • 深入分析C中不安全的sprintf与strcpy
  • 哪儿有下载《深入理解Linux内核》这本书?(中文)


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3