Java Doc for BitstreamFormat.java in  » Content-Management-System » dspace » org » dspace » content » 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 » Content Management System » dspace » org.dspace.content 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.dspace.content.BitstreamFormat

BitstreamFormat
public class BitstreamFormat (Code)
Class representing a particular bitstream format.

Changes to the bitstream format metadata are only written to the database when update is called.
author:
   Robert Tansley
version:
   $Revision: 1670 $



Field Summary
final public static  intKNOWN
    
final public static  intSUPPORTED
     The "supported" support level - for bitstream formats known to the system and fully supported.
final public static  intUNKNOWN
    

Constructor Summary
 BitstreamFormat(Context context, TableRow row)
     Class constructor for creating a BitstreamFormat object based on the contents of a DB table row.

Method Summary
public static  BitstreamFormatcreate(Context context)
    
public  voiddelete()
     Delete this bitstream format.
public static  BitstreamFormatfind(Context context, int id)
     Get a bitstream format from the database.
public static  BitstreamFormat[]findAll(Context context)
    
public static  BitstreamFormatfindByMIMEType(Context context, String mimeType)
     Find a bitstream format by its (unique) MIME type.
public static  BitstreamFormatfindByShortDescription(Context context, String desc)
    
public static  BitstreamFormat[]findNonInternal(Context context)
     Retrieve all non-internal bitstream formats from the registry.
public static  BitstreamFormatfindUnknown(Context context)
     Get the generic "unknown" bitstream format.
public  StringgetDescription()
    
public  String[]getExtensions()
    
public  intgetID()
    
public  StringgetMIMEType()
    
public  StringgetShortDescription()
    
public  intgetSupportLevel()
     Get the support level for this bitstream format - one of UNKNOWN,KNOWN or SUPPORTED.
public  booleanisInternal()
    
public  voidsetDescription(String s)
    
public  voidsetExtensions(String[] exts)
    
public  voidsetInternal(boolean b)
    
public  voidsetMIMEType(String s)
    
public  voidsetShortDescription(String s)
    
public  voidsetSupportLevel(int sl)
     Set the support level for this bitstream format - one of UNKNOWN,KNOWN or SUPPORTED.
public  voidupdate()
    

Field Detail
KNOWN
final public static int KNOWN(Code)
The "known" support level - for bitstream formats that are known to the system, but not fully supported



SUPPORTED
final public static int SUPPORTED(Code)
The "supported" support level - for bitstream formats known to the system and fully supported.



UNKNOWN
final public static int UNKNOWN(Code)
The "unknown" support level - for bitstream formats that are unknown to the system




Constructor Detail
BitstreamFormat
BitstreamFormat(Context context, TableRow row) throws SQLException(Code)
Class constructor for creating a BitstreamFormat object based on the contents of a DB table row.
Parameters:
  context - the context this object exists in
Parameters:
  row - the corresponding row in the table
throws:
  SQLException -




Method Detail
create
public static BitstreamFormat create(Context context) throws SQLException, AuthorizeException(Code)
Create a new bitstream format
Parameters:
  context - DSpace context object the newly created BitstreamFormat
throws:
  SQLException -
throws:
  AuthorizeException -



delete
public void delete() throws SQLException, AuthorizeException(Code)
Delete this bitstream format. This converts the types of any bitstreams that may have this type to "unknown". Use this with care!
throws:
  SQLException -
throws:
  AuthorizeException -



find
public static BitstreamFormat find(Context context, int id) throws SQLException(Code)
Get a bitstream format from the database.
Parameters:
  context - DSpace context object
Parameters:
  id - ID of the bitstream format the bitstream format, or null if the ID is invalid.
throws:
  SQLException -



findAll
public static BitstreamFormat[] findAll(Context context) throws SQLException(Code)
Retrieve all bitstream formats from the registry, ordered by ID
Parameters:
  context - DSpace context object the bitstream formats.
throws:
  SQLException -



findByMIMEType
public static BitstreamFormat findByMIMEType(Context context, String mimeType) throws SQLException(Code)
Find a bitstream format by its (unique) MIME type. If more than one bitstream format has the same MIME type, the one returned is unpredictable.
Parameters:
  context - DSpace context object
Parameters:
  mimeType - MIME type value the corresponding bitstream format, or null ifthere's no bitstream format with the given MIMEtype.
throws:
  SQLException -



findByShortDescription
public static BitstreamFormat findByShortDescription(Context context, String desc) throws SQLException(Code)
Find a bitstream format by its (unique) short description
Parameters:
  context - DSpace context object
Parameters:
  desc - the short description the corresponding bitstream format, or null ifthere's no bitstream format with the given short description
throws:
  SQLException -



findNonInternal
public static BitstreamFormat[] findNonInternal(Context context) throws SQLException(Code)
Retrieve all non-internal bitstream formats from the registry. The "unknown" format is not included, and the formats are ordered by support level (highest first) first then short description.
Parameters:
  context - DSpace context object the bitstream formats.
throws:
  SQLException -



findUnknown
public static BitstreamFormat findUnknown(Context context) throws SQLException(Code)
Get the generic "unknown" bitstream format.
Parameters:
  context - DSpace context object the "unknown" bitstream format.
throws:
  SQLException -
throws:
  IllegalStateException - if the "unknown" bitstream format couldn't be found



getDescription
public String getDescription()(Code)
Get a description of this bitstream format, including full application or format name the description



getExtensions
public String[] getExtensions()(Code)
Get the filename extensions associated with this format the extensions



getID
public int getID()(Code)
Get the internal identifier of this bitstream format the internal identifier



getMIMEType
public String getMIMEType()(Code)
Get the MIME type of this bitstream format, for example text/plain the MIME type



getShortDescription
public String getShortDescription()(Code)
Get a short (one or two word) description of this bitstream format the short description



getSupportLevel
public int getSupportLevel()(Code)
Get the support level for this bitstream format - one of UNKNOWN,KNOWN or SUPPORTED. the support level



isInternal
public boolean isInternal()(Code)
Find out if the bitstream format is an internal format - that is, one that is used to store system information, rather than the content of items in the system true if the bitstream format is an internal type



setDescription
public void setDescription(String s)(Code)
Set the description of the bitstream format
Parameters:
  s - the new description



setExtensions
public void setExtensions(String[] exts)(Code)
Set the filename extensions associated with this format
Parameters:
  exts - String [] array of extensions



setInternal
public void setInternal(boolean b)(Code)
Set whether the bitstream format is an internal format
Parameters:
  b - pass in true if the bitstream format is aninternal type



setMIMEType
public void setMIMEType(String s)(Code)
Set the MIME type of the bitstream format
Parameters:
  s - the new MIME type



setShortDescription
public void setShortDescription(String s) throws SQLException(Code)
Set the short description of the bitstream format
Parameters:
  s - the new short description



setSupportLevel
public void setSupportLevel(int sl)(Code)
Set the support level for this bitstream format - one of UNKNOWN,KNOWN or SUPPORTED.
Parameters:
  sl - the new support level



update
public void update() throws SQLException, AuthorizeException(Code)
Update the bitstream format metadata
throws:
  SQLException -
throws:
  AuthorizeException -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(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.