优化byte数组转换
This commit is contained in:
parent
94a0de0d27
commit
4c28f380aa
6
pom.xml
6
pom.xml
@ -207,6 +207,12 @@
|
|||||||
<version>2.1.3</version>
|
<version>2.1.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.guava</groupId>
|
||||||
|
<artifactId>guava</artifactId>
|
||||||
|
<version>20.0</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- json解析库fastjson2 -->
|
<!-- json解析库fastjson2 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.fastjson2</groupId>
|
<groupId>com.alibaba.fastjson2</groupId>
|
||||||
|
@ -3,6 +3,7 @@ package com.genersoft.iot.vmp.gb28181.transmit.event.request;
|
|||||||
import com.genersoft.iot.vmp.gb28181.bean.ParentPlatform;
|
import com.genersoft.iot.vmp.gb28181.bean.ParentPlatform;
|
||||||
import com.genersoft.iot.vmp.gb28181.transmit.SIPSender;
|
import com.genersoft.iot.vmp.gb28181.transmit.SIPSender;
|
||||||
import com.genersoft.iot.vmp.gb28181.utils.SipUtils;
|
import com.genersoft.iot.vmp.gb28181.utils.SipUtils;
|
||||||
|
import com.google.common.primitives.Bytes;
|
||||||
import gov.nist.javax.sip.message.SIPRequest;
|
import gov.nist.javax.sip.message.SIPRequest;
|
||||||
import gov.nist.javax.sip.message.SIPResponse;
|
import gov.nist.javax.sip.message.SIPResponse;
|
||||||
import org.apache.commons.lang3.ArrayUtils;
|
import org.apache.commons.lang3.ArrayUtils;
|
||||||
@ -196,8 +197,7 @@ public abstract class SIPRequestProcessorParent {
|
|||||||
result.add(rawContent[i]);
|
result.add(rawContent[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Byte[] bytes = new Byte[0];
|
byte[] bytesResult = Bytes.toArray(result);
|
||||||
byte[] bytesResult = ArrayUtils.toPrimitive(result.toArray(bytes));
|
|
||||||
|
|
||||||
Document xml;
|
Document xml;
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user