Package com.lowagie.text.rtf.document.output

Examples of com.lowagie.text.rtf.document.output.RtfMemoryCache


    /**
     * The default constructor for a RtfDocument
     */
    public RtfDocument() {
        super(null);
        this.data = new RtfMemoryCache();
        this.mapper = new RtfMapper(this);
        this.documentHeader = new RtfDocumentHeader(this);
        this.documentHeader.init();
        this.previousRandomInts = new ArrayList();
        this.documentSettings = new RtfDocumentSettings(this);
View Full Code Here


            switch(this.documentSettings.getDataCacheStyle()) {
              case RtfDataCache.CACHE_MEMORY_EFFICIENT: 
                this.data = new RtfEfficientMemoryCache();
                break;
                case RtfDataCache.CACHE_MEMORY:
                  this.data = new RtfMemoryCache();
                  break;
                case RtfDataCache.CACHE_DISK:
                  this.data = new RtfDiskCache();
                  break;
                default:
                  throw new RuntimeException(MessageLocalization.getComposedMessage("unknown"));
            }
       
        } catch(IOException ioe) {
            System.err.println("Could not initialize disk cache. Using memory cache.");
            ioe.printStackTrace();
            this.data = new RtfMemoryCache();
        }
    }
View Full Code Here

    /**
     * The default constructor for a RtfDocument
     */
    public RtfDocument() {
        super(null);
        this.data = new RtfMemoryCache();
        this.mapper = new RtfMapper(this);
        this.documentHeader = new RtfDocumentHeader(this);
        this.documentHeader.init();
        this.previousRandomInts = new ArrayList();
        this.documentSettings = new RtfDocumentSettings(this);
View Full Code Here

            switch(this.documentSettings.getDataCacheStyle()) {
              case RtfDataCache.CACHE_MEMORY_EFFICIENT: 
                this.data = new RtfEfficientMemoryCache();
                break;
                case RtfDataCache.CACHE_MEMORY:
                  this.data = new RtfMemoryCache();
                  break;
                case RtfDataCache.CACHE_DISK:
                  this.data = new RtfDiskCache();
                  break;
                default:
                  throw new RuntimeException("unknown");
            }
       
        } catch(IOException ioe) {
            System.err.println("Could not initialize disk cache. Using memory cache.");
            ioe.printStackTrace();
            this.data = new RtfMemoryCache();
        }
    }
View Full Code Here

    /**
     * The default constructor for a RtfDocument
     */
    public RtfDocument() {
        super(null);
        this.data = new RtfMemoryCache();
        this.mapper = new RtfMapper(this);
        this.documentHeader = new RtfDocumentHeader(this);
        this.documentHeader.init();
        this.previousRandomInts = new ArrayList();
        this.documentSettings = new RtfDocumentSettings(this);
View Full Code Here

            switch(this.documentSettings.getDataCacheStyle()) {
              case RtfDataCache.CACHE_MEMORY_EFFICIENT: 
                this.data = new RtfEfficientMemoryCache();
                break;
                case RtfDataCache.CACHE_MEMORY:
                  this.data = new RtfMemoryCache();
                  break;
                case RtfDataCache.CACHE_DISK:
                  this.data = new RtfDiskCache();
                  break;
                default:
                  throw new RuntimeException(MessageLocalization.getComposedMessage("unknown"));
            }
       
        } catch(IOException ioe) {
            System.err.println("Could not initialize disk cache. Using memory cache.");
            ioe.printStackTrace();
            this.data = new RtfMemoryCache();
        }
    }
View Full Code Here

TOP

Related Classes of com.lowagie.text.rtf.document.output.RtfMemoryCache

Copyright © 2018 www.massapicom. 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.