446 public class DocFlavor implements Serializable, Cloneable {
447
448 private static final long serialVersionUID = -4512080796965449721L;
449
450 /**
451 * A String representing the host operating system encoding.
452 * This will follow the conventions documented in
453 * <a href="http://www.ietf.org/rfc/rfc2278.txt">
454 * <i>RFC 2278: IANA Charset Registration Procedures</i></a>
455 * except where historical names are returned for compatibility with
456 * previous versions of the Java platform.
457 * The value returned from method is valid only for the VM which
458 * returns it, for use in a DocFlavor.
459 * This is the charset for all the "HOST" pre-defined DocFlavors in
460 * the executing VM.
461 */
462 public static final String hostEncoding;
463
464 static {
465 hostEncoding =
466 (String)java.security.AccessController.doPrivileged(
467 new sun.security.action.GetPropertyAction("file.encoding"));
468 }
469
470 /**
471 * MIME type.
472 */
473 private transient MimeType myMimeType;
474
475 /**
476 * Representation class name.
477 * @serial
478 */
479 private String myClassName;
480
481 /**
482 * String value for this doc flavor. Computed when needed and cached.
483 */
484 private transient String myStringValue = null;
485
486
|
446 public class DocFlavor implements Serializable, Cloneable {
447
448 private static final long serialVersionUID = -4512080796965449721L;
449
450 /**
451 * A String representing the host operating system encoding.
452 * This will follow the conventions documented in
453 * <a href="http://www.ietf.org/rfc/rfc2278.txt">
454 * <i>RFC 2278: IANA Charset Registration Procedures</i></a>
455 * except where historical names are returned for compatibility with
456 * previous versions of the Java platform.
457 * The value returned from method is valid only for the VM which
458 * returns it, for use in a DocFlavor.
459 * This is the charset for all the "HOST" pre-defined DocFlavors in
460 * the executing VM.
461 */
462 public static final String hostEncoding;
463
464 static {
465 hostEncoding =
466 java.security.AccessController.doPrivileged(
467 new sun.security.action.GetPropertyAction("file.encoding"));
468 }
469
470 /**
471 * MIME type.
472 */
473 private transient MimeType myMimeType;
474
475 /**
476 * Representation class name.
477 * @serial
478 */
479 private String myClassName;
480
481 /**
482 * String value for this doc flavor. Computed when needed and cached.
483 */
484 private transient String myStringValue = null;
485
486
|