Class VRMLFileNameMap

java.lang.Object
org.web3d.net.content.VRMLFileNameMap
All Implemented Interfaces:
FileNameMap, org.ietf.uri.FileNameMap

public class VRMLFileNameMap extends Object implements org.ietf.uri.FileNameMap
An implementation of a file name mapping for handling VRML file types.

When asked for a .wrl file it will return model/vrml. For the reverse mapping it will handle both the old and new types

This filename mapping must be registered with the URI class by the user in order to work. You can use the following code to do this:

  import org.ietf.uri.URI;
  import org.ietf.uri.FileNameMap;

  ...

       FileNameMap fn_map = URI.getFileNameMap();
       if(!(fn_map instanceof VRMLFileNameMap)) {
           fn_map = new VRMLFileNameMap(fn_map);
           URI.setFileNameMap(fn_map);
       }
 
Version:
$Revision: 1.7 $
Author:
Justin Couch