Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/buffer/DescriptionUtil.java')
-rw-r--r--plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/buffer/DescriptionUtil.java59
1 files changed, 0 insertions, 59 deletions
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/buffer/DescriptionUtil.java b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/buffer/DescriptionUtil.java
deleted file mode 100644
index 256d52192a..0000000000
--- a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/buffer/DescriptionUtil.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/***************************************************************************
- * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- **************************************************************************/
-package org.eclipse.internal.net4j.buffer;
-
-/**
- * @author Eike Stepper
- */
-@Deprecated
-public final class DescriptionUtil
-{
- public static final String SEPARATOR = ":"; //$NON-NLS-1$
-
- public static final int TYPE_INDEX = 0;
-
- private DescriptionUtil()
- {
- }
-
- public static String getType(String description)
- {
- return getElement(description, TYPE_INDEX);
- }
-
- public static String getElement(String description, int index)
- {
- String[] elements = getElements(description);
- return elements[index];
- }
-
- public static String[] getElements(String description)
- {
- return description.split(SEPARATOR);
- }
-
- public static String getDescription(String type, Object[] elements)
- {
- StringBuilder builder = new StringBuilder();
- builder.append(type);
-
- for (Object element : elements)
- {
- builder.append(":");
- if (element != null)
- {
- builder.append(element);
- }
- }
-
- return builder.toString();
- }
-}

Back to the top