These utility classes are no longer useful, remove them.
Change-Id: If9e96e978cff5c6a69ac8bfb1c63717c1762d3de
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
+++ /dev/null
-/*
- * Copyright (c) 2013 Cisco Systems, Inc. and others. 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
- */
-
-package org.opendaylight.yangtools.yang.parser.util;
-
-import com.google.common.io.ByteStreams;
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-
-public class NamedByteArrayInputStream extends ByteArrayInputStream implements NamedInputStream {
- private final String toString;
- public NamedByteArrayInputStream(final byte[] buf, final String toString) {
- super(buf);
- this.toString = toString;
- }
-
- public static ByteArrayInputStream create(final InputStream originalIS) throws IOException {
- final byte[] data = ByteStreams.toByteArray(originalIS);
-
- if (originalIS instanceof NamedInputStream) {
- return new NamedByteArrayInputStream(data, originalIS.toString());
- }
- return new ByteArrayInputStream(data);
- }
-
- @Override
- public String toString() {
- return toString;
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2013 Cisco Systems, Inc. and others. 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
- */
-package org.opendaylight.yangtools.yang.parser.util;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-
-public class NamedFileInputStream extends FileInputStream implements NamedInputStream {
- private final String fileDestination;
-
- public NamedFileInputStream(File file, String fileDestination) throws FileNotFoundException {
- super(file);
- this.fileDestination = fileDestination;
- }
-
- public String getFileDestination() {
- return fileDestination;
- }
-
- @Override
- public String toString() {
- return fileDestination;
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2013 Cisco Systems, Inc. and others. 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
- */
-
-package org.opendaylight.yangtools.yang.parser.util;
-
-public interface NamedInputStream {
-
- /**
- * @return name of resource from which this input stream is derived, typically file path.
- */
- String toString();
-}