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

com.iprogrammerr.gentle.request.binary.HeadBodyPattern Maven / Gradle / Ivy

The newest version!
package com.iprogrammerr.gentle.request.binary;

public final class HeadBodyPattern implements BinaryPattern {

	private final BinaryPattern base;

	private HeadBodyPattern(BinaryPattern base) {
		this.base = base;
	}

	public HeadBodyPattern() {
		this(new ConfigurablePattern("\r\n\r\n".getBytes()));
	}

	@Override
	public byte[] value() {
		return this.base.value();
	}

	@Override
	public int index(byte[] content) {
		return this.base.index(content);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy