A device for encoding a stream of databits of a binary information signal into a stream of databits of a constrained binary channel signal, said binary information signal comprising n-bit information words, said binary channel signal comprising a sequence of channel words, said sequence of channel words comprising m1-bit channel words and m2-bit channel words, the device comprising:
- an n-to-m1-bit converter for converting the n-bit information words into corresponding m1-bit channel words,
- an n-to-m2-bit converter for converting the n-bit information words into corresponding m2-bit channel words,
- state-establishing means for establishing a coding state of the m1-bit channel words and of the m2-bit channel words,
- wherein the n-to-m1 bit converter is additionally arranged to select the m1-bit channel word depending on an end part of the preceding channel word in said sequence of channel words,
- wherein the n-to-m2 bit converter is additionally arranged to select the m2-bit channel word depending on an end part of the preceding channel word in said sequence of channel words,
- wherein n, m1, and m2 are positive integers such that m2>m1>n,
- wherein at least two of said m2-bit channel words have opposite parities,
- wherein said channel words are concatenated such that said sequence of channel words comprises said concatenated channel words,
- wherein said concatenated channel words comprise concatenated m1-bit channel words and m2-bit channel words,
- wherein said concatenated m1-bit channel words and m2-bit channel words comply with a runlength constraint of the binary channel signal,
- wherein each m1-bit channel word is associated with a coding state of a channel code C1, said coding state of said channel code C1 being established in dependence upon an end part of the preceding channel word in said sequence of channel words,
- wherein each m2-bit channel word is associated with a coding state of a channel code C2, said coding state of said channel code C2 being established in dependence upon an end part of the preceding channel word in said sequence of channel words, and
- wherein end parts of the m1-bit channel words in a coding state of channel code C1 and beginning parts of the m2-bit channel words in a coding state of channel code C2 are arranged to comply with said runlength constraint, and
- wherein at least one of the n-to-m1-bit converter and the n-to-m2-bit converter comprises substitution means for substituting a limited number of channel words for substitute channel words so as to influence predetermined properties of the binary channel signal, the substituted channel word and the substitute channel word establishing the same state.