#include <vtkAssignMimeType.h>
Given a table containing document URIs and contents, tries to assign a MIME type to each document.
Inputs: Input port 0: (required) A vtkTable containing document URIs and contents (which could be binary).
Outputs: Output port 0: The same table with an additional "mime_type" column that contains the MIME type identified for each document, or empty-string.
Use SetInputArrayToProcess(0, ...) to specify the input table column that contains URIs (must be a vtkStringArray).
Use SetInputArrayToProcess(1, ...) to specify the input table column that contains document contents (must be a vtkStringArray).
Definition at line 62 of file vtkAssignMimeType.h.
Public Types | |
typedef vtkTableAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetOutputArray (const char *) |
virtual char * | GetOutputArray () |
virtual void | SetDefaultMimeType (const char *) |
virtual char * | GetDefaultMimeType () |
void | SetMimeTypes (vtkMimeTypes *m) |
virtual vtkMimeTypes * | GetMimeTypes () |
Static Public Member Functions | |
static vtkAssignMimeType * | New () |
static int | IsTypeOf (const char *type) |
static vtkAssignMimeType * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkAssignMimeType () | |
~vtkAssignMimeType () | |
virtual int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
vtkAssignMimeType::vtkAssignMimeType | ( | ) | [protected] |
vtkAssignMimeType::~vtkAssignMimeType | ( | ) | [protected] |
static vtkAssignMimeType* vtkAssignMimeType::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkTableAlgorithm.
virtual const char* vtkAssignMimeType::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkTableAlgorithm.
static int vtkAssignMimeType::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkTableAlgorithm.
virtual int vtkAssignMimeType::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkTableAlgorithm.
static vtkAssignMimeType* vtkAssignMimeType::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkTableAlgorithm.
void vtkAssignMimeType::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkTableAlgorithm.
virtual void vtkAssignMimeType::SetOutputArray | ( | const char * | ) | [virtual] |
Specifies the name of the output MIME type array. Default: "mime_type".
virtual char* vtkAssignMimeType::GetOutputArray | ( | ) | [virtual] |
Specifies the name of the output MIME type array. Default: "mime_type".
virtual void vtkAssignMimeType::SetDefaultMimeType | ( | const char * | ) | [virtual] |
Specifies a default MIME type that will be assigned to files whose MIME type can't otherwise be identified. Set this to "text/plain" if you want to analyze files that would otherwise be ignored (such as files without a known file extension, files without any file extension, etc). Default: empty string.
virtual char* vtkAssignMimeType::GetDefaultMimeType | ( | ) | [virtual] |
Specifies a default MIME type that will be assigned to files whose MIME type can't otherwise be identified. Set this to "text/plain" if you want to analyze files that would otherwise be ignored (such as files without a known file extension, files without any file extension, etc). Default: empty string.
void vtkAssignMimeType::SetMimeTypes | ( | vtkMimeTypes * | m | ) |
Assign a custom vtkMimeTypes object to this filter. This makes it possible to work with arbitrary Mime Type strategies.
virtual vtkMimeTypes* vtkAssignMimeType::GetMimeTypes | ( | ) | [virtual] |
Assign a custom vtkMimeTypes object to this filter. This makes it possible to work with arbitrary Mime Type strategies.
virtual int vtkAssignMimeType::RequestData | ( | vtkInformation * | request, | |
vtkInformationVector ** | inputVector, | |||
vtkInformationVector * | outputVector | |||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkTableAlgorithm.