com.wildcrest.j2printerworks
Class CloneException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.wildcrest.j2printerworks.CloneException
- All Implemented Interfaces:
- java.io.Serializable
- public class CloneException
- extends java.lang.RuntimeException
Exception thrown by J2Printer and J2TextPrinter clone
methods if objects to be cloned are not serializable, i.e.,
if Java throws java.io.NotSerializableException when
J2PrinterWorks attempts to clone your object.
By default, J2TextPrinter clones the contents of your JTextPane
while printing for thread-safety reasons. However, due to bugs
and other shortcomings in Java serialization, your particular
JTextPane contents may not be serializable. If so, you can
turn cloning off with the J2TextPrinter method setCloningUsed(false).
Printing will still work, only now it is up to you to ensure that
your JTextPane is left alone until printing completes. However,
if your JTextPane contains embedded components, it cannot be displayed
on the screen and printed at the same time, so you must either have
setCloningUsed(true), or you must print from a second identical
JTextPane not displayed on the screen. See further details under
the J2TextPrinter method setCloningUsed.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CloneException
public CloneException(java.lang.String s)