![JAR search and dependency download from the Maven repository](/logo.png)
ee.sk.digidoc.c14n.TextPositionInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdigidoc Show documentation
Show all versions of jdigidoc Show documentation
A Java libray for manipulating Estonian digital signature container files DDOC and BDOC. Note that this library is deprecated. It is recommended to use the new DigiDoc4j library at https://github.com/open-eid/digidoc4j
The newest version!
package ee.sk.digidoc.c14n;
import ee.sk.digidoc.c14n.common.StringImplementation;
public class TextPositionInfo
{
public byte[] Data;
public int Offset;
public TextPositionInfo(byte[] d, int o)
{
this.Data = d;
this.Offset = o;
}
public String toString()
{
Object[] objectArray1;
objectArray1 = new Object[]
{
"[line ",
new Integer(this.get_Line()),
", col ",
new Integer(this.get_Column()),
"]"
};
return StringImplementation.Concat(objectArray1);
}
public int get_Line()
{
int n;
int i;
n = 1;
for (i = this.Offset; (i > -1); i--)
{
if ((this.Data[i] == 10))
{
n++;
}
}
return n;
}
public int get_Column()
{
int n;
int i;
n = 0;
for (i = this.Offset; (i > -1); i--)
{
if ((this.Data[i] == 10))
{
break;
}
n++;
}
return n;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy