Sha256: b06ff0fa78fc1ce969570842e922696a56eb192327e51bc2e14921698508a4d8

Contents?: true

Size: 476 Bytes

Versions: 4

Compression:

Stored size: 476 Bytes

Contents

package gherkin.formatter;

import java.io.UnsupportedEncodingException;

public class ArgumentFormat {
    private final String prefix;
    private final String suffix;

    public ArgumentFormat(String prefix, String suffix) {
        this.prefix = prefix;
        this.suffix = suffix;
    }

    public byte[] formatArgument(byte[] argument) throws UnsupportedEncodingException {
        return (prefix + new String(argument, "UTF-8") + suffix).getBytes("UTF-8");
    }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gherkin-1.0.3-i386-mswin32 java/src/gherkin/formatter/ArgumentFormat.java
gherkin-1.0.3-i386-mingw32 java/src/gherkin/formatter/ArgumentFormat.java
gherkin-1.0.3-java java/src/gherkin/formatter/ArgumentFormat.java
gherkin-1.0.3 java/src/gherkin/formatter/ArgumentFormat.java