Examples of Reader


Examples of org.imagearchive.lsm.toolbox.Reader

    Reader reader;

    public ImagePreview(MasterModel masterModel, JFileChooser fc) {
        setPreferredSize(new Dimension(138, 50));
        fc.addPropertyChangeListener(this);
        reader = new Reader(masterModel);
    }
View Full Code Here

Examples of org.javalite.activejdbc.test_models.Reader

public class Issue217Test extends ActiveJDBCTest {

    @Test
    public void shouldReturnShort() {

        Reader reader = new Reader();
        reader.set("book_id", 1);
        a(reader.getShort("book_id")).shouldBeA(Short.class);
        reader.set("book_id", "1");
        a(reader.getShort("book_id")).shouldBeA(Short.class);

    }
View Full Code Here

Examples of org.pdfclown.tokens.Reader

  public File(
    IInputStream stream
    ) throws FileFormatException
  {
    reader = new Reader(stream, this);

    FileInfo info = reader.readInfo();
    version = info.getVersion();
    trailer = info.getTrailer();
    if(trailer.containsKey(PdfName.Encrypt)) // Encrypted file.
View Full Code Here

Examples of org.sat4j.reader.Reader

    public static void main(final String[] args) {
        final ISolver solver = SolverFactory.newDefault();
        final SolutionCounter sc = new SolutionCounter(solver);
        solver.setTimeout(3600); // 1 hour timeout
        Reader reader = new InstanceReader(solver);

        // filename is given on the command line
        try {
            final IProblem problem = reader.parseInstance(args[0]);
            if (problem.isSatisfiable()) {
                System.out.println(Messages.getString("MoreThanSAT.0")); //$NON-NLS-1$
                reader.decode(problem.model(), new PrintWriter(System.out));
                IVecInt backbone = RemiUtils.backbone(solver);
                System.out
                        .println(Messages.getString("MoreThanSAT.1") + backbone); //$NON-NLS-1$
                System.out.println(Messages.getString("MoreThanSAT.2")); //$NON-NLS-1$
                System.out.println(Messages.getString("MoreThanSAT.3") //$NON-NLS-1$
View Full Code Here

Examples of thread.concurrencyCookbook.chapter2.recipe05.Reader

  public static void main(String[] args) {

    // Creates an object to store the prices
    PricesInfo pricesInfo=new PricesInfo();
   
    Reader readers[]=new Reader[5];
    Thread threadsReader[]=new Thread[5];
   
    // Creates five readers and threads to run them
    for (int i=0; i<5; i++){
      readers[i]=new Reader(pricesInfo);
      threadsReader[i]=new Thread(readers[i]);
    }
   
    // Creates a writer and a thread to run it
    Writer writer=new Writer(pricesInfo);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.