xmlgraphics-commons 2.2

org.apache.xmlgraphics.io
Class TempResourceURIGenerator

java.lang.Object
  extended by org.apache.xmlgraphics.io.TempResourceURIGenerator

public final class TempResourceURIGenerator
extends Object

Creates a URI for any temporary resource used within XGC.


Field Summary
static String TMP_SCHEME
           
 
Constructor Summary
TempResourceURIGenerator(String uriPrefix)
           
 
Method Summary
 URI generate()
          Generate a unique URI for a temporary resource
static boolean isTempURI(URI uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TMP_SCHEME

public static final String TMP_SCHEME
See Also:
Constant Field Values
Constructor Detail

TempResourceURIGenerator

public TempResourceURIGenerator(String uriPrefix)
Parameters:
uriPrefix - a prefix used to name the unique URI
Method Detail

generate

public URI generate()
Generate a unique URI for a temporary resource

Returns:
the URI

isTempURI

public static boolean isTempURI(URI uri)

xmlgraphics-commons 2.2

Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.