国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > C > 正文

深入jaxb xjc編碼問題的詳細(xì)介紹

2020-01-26 16:12:07
字體:
供稿:網(wǎng)友
平時(shí)喜歡根據(jù)寫一個(gè)xjc批處理命令,根據(jù)xsd批量生成java類,覺得很方便也很酷。但是有時(shí)候xsd生成的java類中含有漢字,結(jié)果總是有些問題。
可是xjc命令參數(shù)又沒有encoding參數(shù)之類的。在網(wǎng)上搜了一通,忽然發(fā)現(xiàn)了一個(gè)好東東:xjc是由com.sun.tools.internal.xjc.Driver實(shí)現(xiàn)的,因此
批處理命令可以如下:
java -Dfile.encoding=UTF-8 -cp D:/java/jdk1.6.0_03/lib/tools.jar com.sun.tools.internal.xjc.Driver  -p com.geostar.csw.domain.layer   metadata_geo_Layer.xsd
結(jié)果:
復(fù)制代碼 代碼如下:

parsing a schema...
compiling a schema...
com/geostar/csw/domain/layer/AbstractMDContentInformationType.java
com/geostar/csw/domain/layer/AbstractMDIdentificationType.java
com/geostar/csw/domain/layer/AbstractMDSpatialRepresentationType.java
com/geostar/csw/domain/layer/CIAddressType.java
com/geostar/csw/domain/layer/CICitationType.java
com/geostar/csw/domain/layer/CIContactType.java
com/geostar/csw/domain/layer/CIDateType.java
com/geostar/csw/domain/layer/CIDateTypeCode.java
com/geostar/csw/domain/layer/CIOnLineFunctionCode.java
com/geostar/csw/domain/layer/CIOnLineResourceType.java
com/geostar/csw/domain/layer/CIResponsiblePartyType.java
com/geostar/csw/domain/layer/CIRoleCode.java
com/geostar/csw/domain/layer/DQDataLineageType.java
com/geostar/csw/domain/layer/DQDataQualityType.java
com/geostar/csw/domain/layer/DQDqReportType.java
com/geostar/csw/domain/layer/DQDqStatementType.java
com/geostar/csw/domain/layer/DQSourceType.java
com/geostar/csw/domain/layer/DSAssociationTypeCode.java
com/geostar/csw/domain/layer/EXBoundingCoordinatesType.java
com/geostar/csw/domain/layer/EXExtentType.java
com/geostar/csw/domain/layer/EXGeographicBoundingBoxType.java
com/geostar/csw/domain/layer/EXGeographicBoundingPolygonType.java
com/geostar/csw/domain/layer/EXGeographicDescriptionType.java
com/geostar/csw/domain/layer/EXGeographicExtentPropertyType.java
com/geostar/csw/domain/layer/EXGeographicExtentType.java
com/geostar/csw/domain/layer/EXTemporalExtentPropertyType.java
com/geostar/csw/domain/layer/EXTemporalExtentType.java
com/geostar/csw/domain/layer/EXVerticalExtentType.java
com/geostar/csw/domain/layer/FBZY.java
com/geostar/csw/domain/layer/JHDA.java
com/geostar/csw/domain/layer/MDAerialImageIdentificationType.java
com/geostar/csw/domain/layer/MDAggregateInfomationPropertyType.java
com/geostar/csw/domain/layer/MDAggregateInfomationType.java
com/geostar/csw/domain/layer/MDAnalogMapIdentificationType.java
com/geostar/csw/domain/layer/MDApprovedTypeCode.java
com/geostar/csw/domain/layer/MDArchiveIdentificationType.java
com/geostar/csw/domain/layer/MDBrowseGraphicType.java
com/geostar/csw/domain/layer/MDCRSType.java
com/geostar/csw/domain/layer/MDCharacterSetCode.java
com/geostar/csw/domain/layer/MDClassificationCode.java
com/geostar/csw/domain/layer/MDConstraintsPropertyType.java
com/geostar/csw/domain/layer/MDContentInformationPropertyType.java
com/geostar/csw/domain/layer/MDCoverageContentTypeCode.java
com/geostar/csw/domain/layer/MDCoverageDescriptionType.java
com/geostar/csw/domain/layer/MDDataIdentificationType.java
com/geostar/csw/domain/layer/MDDescKeys.java
com/geostar/csw/domain/layer/MDDigitalArchiveIdentificationType.java
com/geostar/csw/domain/layer/MDDistributionType.java
com/geostar/csw/domain/layer/MDDistributorType.java
com/geostar/csw/domain/layer/MDEllipsoidParametersType.java
com/geostar/csw/domain/layer/MDFeatureCatalogueDescriptionType.java
com/geostar/csw/domain/layer/MDFormatType.java
com/geostar/csw/domain/layer/MDGeometricObjectTypeCode.java
com/geostar/csw/domain/layer/MDGovNameTypeBak.java
com/geostar/csw/domain/layer/MDGridSpatialRepresentationType.java
com/geostar/csw/domain/layer/MDIdentificationPropertyType.java
com/geostar/csw/domain/layer/MDIdentifierType.java
com/geostar/csw/domain/layer/MDImageDescriptionType.java
com/geostar/csw/domain/layer/MDImageIdentificationType.java
com/geostar/csw/domain/layer/MDImagingConditionCode.java
com/geostar/csw/domain/layer/MDLegConstsType.java
com/geostar/csw/domain/layer/MDMaintInformationType.java
com/geostar/csw/domain/layer/MDMaintenanceFrequencyCode.java
com/geostar/csw/domain/layer/MDMapFormCode.java
com/geostar/csw/domain/layer/MDMetadataType.java
com/geostar/csw/domain/layer/MDProgressCode.java
com/geostar/csw/domain/layer/MDProjectionParametersType.java
com/geostar/csw/domain/layer/MDReferenceSystemType.java
com/geostar/csw/domain/layer/MDReferencedThemeType.java
com/geostar/csw/domain/layer/MDResolutionType.java
com/geostar/csw/domain/layer/MDResourceTypeCode.java
com/geostar/csw/domain/layer/MDRestrictionCode.java
com/geostar/csw/domain/layer/MDRestrictionCodeEx.java
com/geostar/csw/domain/layer/MDScopeCode.java
com/geostar/csw/domain/layer/MDSecurityConstraintsType.java
com/geostar/csw/domain/layer/MDSpatialRepresentationPropertyType.java
com/geostar/csw/domain/layer/MDSpatialRepresentationTypeCode.java
com/geostar/csw/domain/layer/MDTopicCategoryCode.java
com/geostar/csw/domain/layer/MDTopoLogyLevelCode.java
com/geostar/csw/domain/layer/MDTpCatType.java
com/geostar/csw/domain/layer/MDVectorSpatialRepresentationType.java
com/geostar/csw/domain/layer/ObjectFactory.java
com/geostar/csw/domain/layer/SVOperationMetadataType.java
com/geostar/csw/domain/layer/SVServiceIdentificationType.java
com/geostar/csw/domain/layer/SpatialReferenceInfo.java
com/geostar/csw/domain/layer/TBOOL.java
com/geostar/csw/domain/layer/TDYTABLETYPE.java
com/geostar/csw/domain/layer/TDataInfo.java
com/geostar/csw/domain/layer/TJHSJ.java
com/geostar/csw/domain/layer/TJHTYPE.java
com/geostar/csw/domain/layer/TJHXX.java
com/geostar/csw/domain/layer/TLAYERTYPE.java
com/geostar/csw/domain/layer/TMInstantType.java
com/geostar/csw/domain/layer/TMPeriodType.java
com/geostar/csw/domain/layer/TMetaInfo.java
com/geostar/csw/domain/layer/TMetaTotal.java
com/geostar/csw/domain/layer/TTABLETYPE.java
com/geostar/csw/domain/layer/TTHMEATICTYPE.java
com/geostar/csw/domain/layer/TUPDATETYPE.java
com/geostar/csw/domain/layer/TUserInfo.java
com/geostar/csw/domain/layer/TVersionInfo.java
com/geostar/csw/domain/layer/TZDGL.java
com/geostar/csw/domain/layer/TZDJH.java
com/geostar/csw/domain/layer/UpdateDescribe.java
com/geostar/csw/domain/layer/package-info.java
c:/Catalog實(shí)體類生成工具>
忽然感覺好興奮!jaxb真的是好東東!
發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表

圖片精選

主站蜘蛛池模板: 塔河县| 门头沟区| 文化| 湄潭县| 漳平市| 五台县| 江陵县| 长治县| 平江县| 互助| 巩义市| 珠海市| 临漳县| 郑州市| 新乐市| 黔西县| 乐清市| 绥棱县| 北京市| 三穗县| 五大连池市| 咸丰县| 耒阳市| 太仆寺旗| 久治县| 桦甸市| 东城区| 新竹市| 樟树市| 长垣县| 凯里市| 兖州市| 江油市| 习水县| 广宁县| 昌黎县| 承德市| 邓州市| 广汉市| 庆阳市| 伊春市|