Skip to content

Commit b49cc38

Browse files
committed
feature xkcoding#12.4第三次提交
1 parent 751d6a0 commit b49cc38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

demo-swagger/src/main/java/com/xkcoding/swagger/controller/BinaryParserUtils.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.xkcoding.swagger.controller;
22

3+
import com.xkcoding.swagger.entity.Constant;
4+
35
import java.io.FileInputStream;
46
import java.io.IOException;
57
import java.nio.ByteBuffer;
@@ -95,7 +97,7 @@ public static void printData(String prefix, byte[] data, int len) {
9597
public static void main(String[] args) {
9698
try {
9799
// 读取文件
98-
byte[] content = readFile("E:\\myfile\\mywork\\lingcloud\\cpic\\2579_1_2020.txt");
100+
byte[] content = readFile(Constant.KAFKA_LOG_PATH);
99101
ByteBuffer buffer = ByteBuffer.wrap(content).order(ByteOrder.BIG_ENDIAN);
100102

101103
// 解析 Kafka 头

0 commit comments

Comments
 (0)