All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection Maven / Gradle / Ivy

Go to download

JODConverter converts between different office documents formats, using OpenOffice.org.

The newest version!
//
// JODConverter - Java OpenDocument Converter
// Copyright (C) 2004-2007 - Mirko Nasato 
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
// http://www.gnu.org/copyleft/lesser.html
//
package com.artofsolving.jodconverter.openoffice.connection;

public class SocketOpenOfficeConnection extends AbstractOpenOfficeConnection {
	
	public static final String DEFAULT_HOST = "localhost";
    public static final int DEFAULT_PORT = 8100;

    public SocketOpenOfficeConnection() {
        this(DEFAULT_HOST, DEFAULT_PORT);
    }

    public SocketOpenOfficeConnection(int port) {
    	this(DEFAULT_HOST, port);
    }

    public SocketOpenOfficeConnection(String host, int port) {
        super("socket,host=" + host + ",port=" + port + ",tcpNoDelay=1");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy