소스 검색

add public

xiewj 4 달 전
부모
커밋
12526a56b7
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      4dkankan-utils-dxf/src/main/java/com/fdkankan/dxf/parse/utils/LaserMeterToDxfUtil.java

+ 3 - 3
4dkankan-utils-dxf/src/main/java/com/fdkankan/dxf/parse/utils/LaserMeterToDxfUtil.java

@@ -32,12 +32,12 @@ public class LaserMeterToDxfUtil {
      * @param outPath dxf输出地址
      */
 
-    private static void toDxf(File inFile, String outPath) throws Exception{
+    public static void toDxf(File inFile, String outPath) throws Exception{
         String msg = FileUtil.readString(inFile, StandardCharsets.UTF_8);
         JSONArray jsonObject = JSONArray.parseArray(msg);
         toDxf(jsonObject,outPath);
     }
-    private static void toDxf(String inPath, String outPath) throws Exception {
+    public static void toDxf(String inPath, String outPath) throws Exception {
         JSONArray jsonObject = JSONArray.parseArray(inPath);
         toDxf(jsonObject,outPath);
     }
@@ -49,7 +49,7 @@ public class LaserMeterToDxfUtil {
      * @throws Exception
      */
 
-    private static void toDxf(JSONArray jsonArray, String outPath) throws Exception{
+    public static void toDxf(JSONArray jsonArray, String outPath) throws Exception{
 
         DxfDocWriter dxfDocWriter = new DxfDocWriter();
         HashSet<Vector3> pointSet= new HashSet<>();