Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
雷紫添
xzxt-api-report
Commits
23304aa1
Commit
23304aa1
authored
Dec 17, 2020
by
雷紫添
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加限流空置。
parent
87796ed3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/main/java/com/founder/test.java
+3
-3
src/main/java/com/founder/util/FtpUtil.java
+3
-3
No files found.
src/main/java/com/founder/test.java
View file @
23304aa1
...
...
@@ -33,16 +33,16 @@ public class test {
byte[] in_b = swapStream.toByteArray(); //in_b为转换之后的结果
final String encodedText = encoder.encodeToString(in_b);*/
Jccj
jccj
=
new
Jccj
();
File
file
=
new
File
(
"D:/
appone
.zip"
);
File
file
=
new
File
(
"D:/
JCCJ-R1100000500002014070001
.zip"
);
FileInputStream
inputFile
=
new
FileInputStream
(
file
);
byte
[]
buffer
=
new
byte
[(
int
)
file
.
length
()];
inputFile
.
read
(
buffer
);
inputFile
.
close
();
//编码
final
String
encodedText
=
encoder
.
encodeToString
(
buffer
);
System
.
out
.
println
(
encodedText
);
jccj
.
setXxsb_zip
(
encodedText
);
jccj
.
setTaskid
(
"JC
XX-R1100000500002014070006
"
);
jccj
.
setTaskid
(
"JC
CJ-R1100000500002014070001
"
);
jccj
.
setUser_id
(
"350128197311050034"
);
jccj
.
setUser_dept
(
"1400000000"
);
jccj
.
setVersion
(
"1.00"
);
...
...
src/main/java/com/founder/util/FtpUtil.java
View file @
23304aa1
...
...
@@ -172,11 +172,11 @@ public class FtpUtil {
public
static
void
main
(
String
[]
args
)
{
try
{
FileInputStream
in
=
new
FileInputStream
(
new
File
(
"D:\\JCCJ-R1100000500002014070001.xml"
));
//
FileInputStream in=new FileInputStream(new File("D:\\JCCJ-R1100000500002014070001.xml"));
// boolean flag = uploadFile("47.92.129.99", 4546, "ftpuser", "fou3rfnder4SD1", "/home/ftpuser/","/2016/", "JCCJ-两岸三地R1100000500002014070001.xml", in);
boolean
flag
=
downloadFile
(
"47.92.129.99"
,
4546
,
"ftpuser"
,
"fou3rfnder4SD1"
,
"2016/"
,
"
appone.zip
"
,
"D:\\"
);
boolean
flag
=
downloadFile
(
"47.92.129.99"
,
4546
,
"ftpuser"
,
"fou3rfnder4SD1"
,
"2016/"
,
"
JCCJ-R1100000500002014070001.xml
"
,
"D:\\"
);
System
.
out
.
println
(
flag
);
}
catch
(
FileNotFound
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment