Here you can find the source of textLinksInBytes()
public static byte[] textLinksInBytes()
//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 }