Java Path File Name nio getDefaultPathName(final String address, final long lspId)

Here you can find the source of getDefaultPathName(final String address, final long lspId)

Description

get Default Path Name

License

Open Source License

Declaration

public static byte[] getDefaultPathName(final String address, final long lspId) 

Method Source Code

//package com.java2s;
/*/*from   ww w  . ja v  a 2 s. c om*/
 * Copyright (c) 2014 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
 */

import java.nio.charset.StandardCharsets;

public class Main {
    public static byte[] getDefaultPathName(final String address, final long lspId) {
        return ("pcc_" + address + "_tunnel_" + lspId).getBytes(StandardCharsets.UTF_8);
    }
}

Related

  1. getConfigurationFilePath(String name)
  2. getContentPath(Path zipFilePath, String contentFileName)
  3. getDatabaseDirectoryPath(String databaseDirectory, String name)
  4. getDataPath(String filename)
  5. getDeckNameFromFile(final Path deckFile)
  6. getDirectoryNames(Path baseDirectory)
  7. getFileContent(String fileNameOrPath)
  8. getFileInFolder(Path p, String filename)
  9. getFilename (final String filepath)