-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBase.java
More file actions
25 lines (21 loc) · 925 Bytes
/
Base.java
File metadata and controls
25 lines (21 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package test;
import java.io.File;
import java.io.UnsupportedEncodingException;
import java.util.Base64;
public class Base {
public static void main(String[] args) throws UnsupportedEncodingException {
// final Base64.Decoder decoder = Base64.getDecoder();
// final Base64.Encoder encoder = Base64.getEncoder();
// final String text = "zho";
// final byte[] textByte = text.getBytes("ISO-8859-1");
////编码
// final String encodedText = encoder.encodeToString(textByte);
// System.out.println(encodedText);
// System.out.println(new String(decoder.decode(encodedText), "ISO-8859-1"));
// File file=new File("/Users/LG/Documents/游泳信息表.xlsx");
// System.out.println(file.getName());
// System.out.println(file.getAbsolutePath());
String filpath=new String("/a/shp/");
System.out.println(filpath.replace("/",""));
}
}