net.sourceforge.plantuml.dedication.TurningBytes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.dedication;
public class TurningBytes {
private final byte key[];
private int idx;
public TurningBytes(byte key[]) {
this.key = key;
}
public byte nextByte() {
if (key.length == 0)
return 0;
final byte result = key[idx];
idx++;
if (idx >= key.length)
idx = 0;
return result;
}
}