From 0972442009f05ffdf8ce44862260d880431c989e Mon Sep 17 00:00:00 2001
From: vincent <1341870251@qq.com>
Date: 星期三, 03 六月 2020 16:59:54 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/common/utils/Struct.java |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/zy/common/utils/Struct.java b/src/main/java/com/zy/common/utils/Struct.java
index 29baf5c..9f960a0 100644
--- a/src/main/java/com/zy/common/utils/Struct.java
+++ b/src/main/java/com/zy/common/utils/Struct.java
@@ -16,6 +16,10 @@
 import java.nio.charset.StandardCharsets;
 import java.util.*;
 
+/**
+ * Tcp鍗忚鎶ユ枃鍩虹被
+ * @author vincent
+ */
 public class Struct implements java.io.Serializable {
 	
 	private transient Map<String,byte[]> decodeByteMapping = new HashMap<>();
@@ -28,11 +32,18 @@
 	public Class getClassType(String name){
 		return null;
 	}
-	
+
+	/**
+	 * 鍒ゆ柇澶у皬绔�
+	 * @return true: 灏忕 / false: 澶х
+	 */
 	public boolean isReverse() {
 		return this.getClass().getAnnotation(little.class)!=null;
 	}
-	
+
+	/**
+	 * 鑾峰彇瀛楄妭鏁扮粍
+	 */
 	public byte[] toBytes() throws Exception {
 		return encode(this);
 	}
@@ -77,7 +88,6 @@
 	 * 
 	 * @param dos
 	 * @param entity
-	 * @throws Exception
 	 */
 	public void write(DataOutputStream dos, Struct entity) throws Exception {
 		if(entity==null)return;

--
Gitblit v1.9.1