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

org.cybergarage.upnp.ServiceList Maven / Gradle / Ivy

/******************************************************************
*
*	CyberUPnP for Java
*
*	Copyright (C) Satoshi Konno 2002
*
*	File: ServiceList.java
*
*	Revision;
*
*	12/04/02
*		- first revision.
*	06/18/03
*		- Added caching a ArrayIndexOfBound exception.
*
******************************************************************/

package org.cybergarage.upnp;

import java.util.Vector;

public class ServiceList extends Vector
{
	////////////////////////////////////////////////
	//	Constants
	////////////////////////////////////////////////
	
	public final static String ELEM_NAME = "serviceList";

	////////////////////////////////////////////////
	//	Constructor
	////////////////////////////////////////////////
	
	public ServiceList() 
	{
	}
	
	////////////////////////////////////////////////
	//	Methods
	////////////////////////////////////////////////
	
	public Service getService(int n)
	{
		Object obj = null;
		try {
			obj = get(n);
		}
		catch (Exception e) {};
		return (Service)obj;
	}
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy