DumpSocat.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:docker-network-veth 作者:
public static void main(String[] args) throws IOException {

        final byte[] bytes2 = Base64.getDecoder().decode("YnsLfVSN");
        System.out.println(new HexBinaryAdapter().marshal(bytes2));
        if(true) {
            return;
        }

        String filename = "/Users/esinev/Library/Preferences/IdeaIC15/scratches/docker-create-endpoint.txt";
        LineNumberReader reader = new LineNumberReader(new FileReader(filename));
        String line;
        while (( line = reader.readLine()) != null) {
//            System.out.println(line);
            if(line.length() >= 50 && line.charAt(48) == ' ' && line.charAt(49) == ' ') {
                String hex = line.substring(0, 49);
                final byte[] bytes = new HexBinaryAdapter().unmarshal(hex.replace(" ", ""));
                String value = new String(bytes);
                System.out.print(value);
//                line = line.substring(50);
            }  else {
                System.out.println(line);
            }
//            System.out.println(line);
        }
    }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号