Namespace: OpenEdge.Net
Type: Class FileTypeRegistry
Parent Classes:
Progress.Lang.Object

Inherits: Progress.Lang.Object


Copyright (c) 2018, 2021 by Progress Software Corporation. All rights reserved.
File:FileTypeRegistry
Purpose:Stores mappings from file extension to mime type
Author(s):mbanks
Created:Thu May 19 16:01:33 EDT 2016
Purpose: Registry for mapping file extensions to their Mime types



Method Summary
  Options Name Purpose
  Clear () /** Clears all the entries from this registry */
  CHARACTER Get (character) /** Returns a registered type, if it exists. returns null otherwise. @param character The name of the content type to register @return character A valid value if it exists. Null otherwise .*/
  CHARACTER GetKeys () /** Returns an array of the key names in this registry. @return character[] The key values. Indeterminate array if empty. */
  CHARACTER GetKeys (character) /** Returns an array of the file extensions types in this registry, for the given mime type. @param character The mime-type. ? and * = all; empty = application/octet-stream; otherwise the input value is used @return character[] The file extensions. Indeterminate array if empty. */
  LOGICAL Has (character) /** Indicates whether a content type is registered or not. @param character The name of the content type to register @return logical True if the content type is registered */
  InitializeRegistry (FileTypeRegistry) /** Adds initial values into the registry @param BuilderRegistry The registry to populate */
  LOGICAL Put (character, character) /** Registers type for a key @param character The key of the file extension to register @param character The mime type of the file content for a file with the extension @return logical True if the type was previously registered */
  LOGICAL Remove (character) /** Deregisters a content type writer @param character The name of the content type to register @return logical True if the content type was previously registered */

Constructor Summary
  Options Name Purpose
  FileTypeRegistry () /** Default constructor */

Property Summary
  Options Name Purpose
  OpenEdge.Net.FileTypeRegistry Registry
  INTEGER Size


Method Detail
Top

Clear ()

Purpose: Clears all the entries from this registry
Top

CHARACTER Get (character)

Purpose: Returns a registered type, if it exists. returns null otherwise.
Parameters:
pcExtensionKey CHARACTER
 
Returns CHARACTER
  character A valid value if it exists. Null otherwise .
Top

CHARACTER GetKeys ()

Purpose: Returns an array of the key names in this registry.
Returns CHARACTER
  character[] The key values. Indeterminate array if empty.
Top

CHARACTER GetKeys (character)

Purpose: Returns an array of the file extensions types in this registry, for the given mime type.
Parameters:
pMimeType CHARACTER
 
Returns CHARACTER
  character[] The file extensions. Indeterminate array if empty.
Top

LOGICAL Has (character)

Purpose: Indicates whether a content type is registered or not.
Parameters:
pcExtensionKey CHARACTER
 
Returns LOGICAL
  logical True if the content type is registered
Top

InitializeRegistry (FileTypeRegistry)

Purpose: Adds initial values into the registry
Parameters:
poRegistry OpenEdge.Net.FileTypeRegistry
 
Top

LOGICAL Put (character, character)

Purpose: Registers type for a key
Parameters:
pcExtensionKey CHARACTER
 
pcMimeType CHARACTER
 
Returns LOGICAL
  logical True if the type was previously registered
Top

LOGICAL Remove (character)

Purpose: Deregisters a content type writer
Parameters:
pcExtensionKey CHARACTER
 
Returns LOGICAL
  logical True if the content type was previously registered


Constructor Detail
Top

FileTypeRegistry ()

Purpose: Default constructor


Property Detail
Top

OpenEdge.Net.FileTypeRegistry Registry

Returns OpenEdge.Net.FileTypeRegistry
 
Top

INTEGER Size

Returns INTEGER