Popular Posts
Enable SSL connection for Jsoup import org.jsoup.Connection; import org.jsoup.Jsoup; import javax.net.ssl.*; import java.io.IOException; import java.security.KeyManagement... Build an OpenVPN server on android device Preparation An android device, in this case, Sony xperia Z is used Root permission required Linux Deploy for deploy i... LogonUser Function : impersonate a windows user // This sample demonstrates the use of the WindowsIdentity class to impersonate a user. // IMPORTANT NOTES:  // This sample can be run only ...
Blog Archive
Stats
Create barcode
import java.io.File;
import java.io.FileNotFoundException;

import net.sourceforge.barbecue.Barcode;
import net.sourceforge.barbecue.BarcodeException;
import net.sourceforge.barbecue.BarcodeFactory;
import net.sourceforge.barbecue.BarcodeImageHandler;
import net.sourceforge.barbecue.output.OutputException;

public class Program {

    /**
     * @param args
     * @throws FileNotFoundException
     * @throws BarcodeException
     * @throws OutputException
     */
    public static void main(String[] args) throws FileNotFoundException, BarcodeException, OutputException {
        // TODO Auto-generated method stub

        Barcode code = BarcodeFactory.create3of9("123456789", true);
        BarcodeImageHandler.savePNG(code, new File("barcode.png"));

    }

}
Library : http://barbecue.sourceforge.net/