org.semanticweb.owlapi.io
Class IOProperties

java.lang.Object
  extended by org.semanticweb.owlapi.io.IOProperties

public class IOProperties
extends java.lang.Object

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 10-Apr-2008


Field Summary
static java.lang.String CONNECTION_ACCEPT_HTTP_COMPRESSION_PROPERTY_NAME
           
static java.lang.String CONNECTION_TIME_OUT_PROPERTY_NAME
           
static boolean DEFAULT_CONNECTION_ACCEPT_HTTP_COMPRESSION
           
static int DEFAULT_CONNECTION_TIME_OUT
           
 
Method Summary
 int getConnectionTimeout()
          Gets the connection timeout that is used for sockets when loading ontologies over HTTP etc.
static IOProperties getInstance()
           
 boolean isConnectionAcceptHTTPCompression()
          Determines whether HTTP compression can be used
 void setConnectionAcceptHTTPCompression(boolean connectionAcceptHTTPCompression)
          Sets whether HTTP compression can be used.
 void setConnectionTimeout(int connectionTimeout)
          Sets the connection timeout that should be used when loading from sockets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONNECTION_TIME_OUT

public static final int DEFAULT_CONNECTION_TIME_OUT
See Also:
Constant Field Values

CONNECTION_TIME_OUT_PROPERTY_NAME

public static final java.lang.String CONNECTION_TIME_OUT_PROPERTY_NAME
See Also:
Constant Field Values

DEFAULT_CONNECTION_ACCEPT_HTTP_COMPRESSION

public static final boolean DEFAULT_CONNECTION_ACCEPT_HTTP_COMPRESSION
See Also:
Constant Field Values

CONNECTION_ACCEPT_HTTP_COMPRESSION_PROPERTY_NAME

public static final java.lang.String CONNECTION_ACCEPT_HTTP_COMPRESSION_PROPERTY_NAME
See Also:
Constant Field Values
Method Detail

getInstance

public static IOProperties getInstance()

getConnectionTimeout

public int getConnectionTimeout()
Gets the connection timeout that is used for sockets when loading ontologies over HTTP etc.

Returns:
The connection timeout in milliseconds

setConnectionTimeout

public void setConnectionTimeout(int connectionTimeout)
Sets the connection timeout that should be used when loading from sockets.

Parameters:
connectionTimeout - The connection timeout in milliseconds

isConnectionAcceptHTTPCompression

public boolean isConnectionAcceptHTTPCompression()
Determines whether HTTP compression can be used

Returns:
true if HTTP compression can be used, otherwise false

setConnectionAcceptHTTPCompression

public void setConnectionAcceptHTTPCompression(boolean connectionAcceptHTTPCompression)
Sets whether HTTP compression can be used.

Parameters:
connectionAcceptHTTPCompression - true if HTTP compression can be used, otherwise false