Java File Link textLinksInBytes()

Here you can find the source of textLinksInBytes()

Description

text Links In Bytes

License

Open Source License

Declaration

public static byte[] textLinksInBytes() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.nio.charset.StandardCharsets;

import java.util.Formatter;

public class Main {
    private static final String FILE_FORMAT = "%s %s%n";

    public static byte[] textLinksInBytes() {
        Formatter formatter = new Formatter();
        formatter.format(FILE_FORMAT, "http://mirror.internode.on.net/pub/test/50meg.test", "50meg.test")
                .format(FILE_FORMAT, "http://test.online.kz/download/swf.rar", "example.rar")
                .format(FILE_FORMAT, "http://test.online.kz/download/swf.rar", "swf.rar");
        return formatter.toString().getBytes(StandardCharsets.UTF_8);
    }// www  .j ava2 s .  co  m
}

Related

  1. makeSymLink(File target, File destination)
  2. readSymbolicLink(@Nonnull File symlink)
  3. readSymlinkTarget(File file)
  4. resolveSymbolicLink(File file)
  5. sanitizeUrl(String link)