Java Doc for MimeType.java in  » 6.0-JDK-Modules » j2me » java » awt » datatransfer » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » java.awt.datatransfer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.datatransfer.MimeType

MimeType
class MimeType implements Externalizable,Cloneable(Code)
A Multipurpose Internet Mail Extension (MIME) type, as defined in RFC 2045 and 2046. THIS IS *NOT* - REPEAT *NOT* - A PUBLIC CLASS! DataFlavor IS THE PUBLIC INTERFACE, AND THIS IS PROVIDED AS A ***PRIVATE*** (THAT IS AS IN *NOT* PUBLIC) HELPER CLASS!


Field Summary
final static  longserialVersionUID
    

Constructor Summary
public  MimeType()
     Constructor for externalization.
public  MimeType(String rawdata)
     Constructor that builds a MimeType from a String.
public  MimeType(String primary, String sub)
     Constructor that builds a MimeType with the given primary and sub type but has an empty parameter list.
public  MimeType(String primary, String sub, MimeTypeParameterList mtpl)
     Constructor used to initialize MimeType, with a pre-defined and valid (or empty) parameter list.

Method Summary
public  Objectclone()
    
public  booleanequals(Object thatObject)
     MimeTypes are equals if their primary types, subtypes, and parameters are all equal.
public  StringgetBaseType()
     Return a String representation of this object without the parameter list.
public  StringgetParameter(String name)
     Retrieve the value associated with the given name, or null if there is no current association.
public  MimeTypeParameterListgetParameters()
     Retrieve a copy of this object's parameter list.
public  StringgetPrimaryType()
     Retrieve the primary type of this object.
public  StringgetSubType()
     Retrieve the sub type of this object.
public  inthashCode()
    
public  booleanmatch(MimeType type)
     Determine of the primary and sub type of this object is the same as the what is in the given type.
public  booleanmatch(String rawdata)
     Determine of the primary and sub type of this object is the same as the content type described in rawdata.
public  voidreadExternal(ObjectInput in)
     The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.
public  voidremoveParameter(String name)
     Remove any value associated with the given name.
public  voidsetParameter(String name, String value)
     Set the value to be associated with the given name, replacing any previous association.
public  StringtoString()
     Return the String representation of this object.
public  voidwriteExternal(ObjectOutput out)
     The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings and arrays.

Field Detail
serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
MimeType
public MimeType()(Code)
Constructor for externalization. This constructor should not be called directly by an application, since the result will be an uninitialized, immutable MimeType object.



MimeType
public MimeType(String rawdata) throws MimeTypeParseException(Code)
Constructor that builds a MimeType from a String.



MimeType
public MimeType(String primary, String sub) throws MimeTypeParseException(Code)
Constructor that builds a MimeType with the given primary and sub type but has an empty parameter list.



MimeType
public MimeType(String primary, String sub, MimeTypeParameterList mtpl) throws MimeTypeParseException(Code)
Constructor used to initialize MimeType, with a pre-defined and valid (or empty) parameter list.




Method Detail
clone
public Object clone() throws CloneNotSupportedException(Code)
a clone of this object



equals
public boolean equals(Object thatObject)(Code)
MimeTypes are equals if their primary types, subtypes, and parameters are all equal. No default values are taken into account.



getBaseType
public String getBaseType()(Code)
Return a String representation of this object without the parameter list.



getParameter
public String getParameter(String name)(Code)
Retrieve the value associated with the given name, or null if there is no current association.



getParameters
public MimeTypeParameterList getParameters()(Code)
Retrieve a copy of this object's parameter list.



getPrimaryType
public String getPrimaryType()(Code)
Retrieve the primary type of this object.



getSubType
public String getSubType()(Code)
Retrieve the sub type of this object.



hashCode
public int hashCode()(Code)



match
public boolean match(MimeType type)(Code)
Determine of the primary and sub type of this object is the same as the what is in the given type.



match
public boolean match(String rawdata) throws MimeTypeParseException(Code)
Determine of the primary and sub type of this object is the same as the content type described in rawdata.



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
exception:
  ClassNotFoundException - If the class for an object beingrestored cannot be found.



removeParameter
public void removeParameter(String name)(Code)
Remove any value associated with the given name.



setParameter
public void setParameter(String name, String value)(Code)
Set the value to be associated with the given name, replacing any previous association.



toString
public String toString()(Code)
Return the String representation of this object.



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings and arrays.
exception:
  IOException - Includes any I/O exceptions that may occur



Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.